You will set the "update_expires" custom license field. See the examples for how to set the custom license field as part of the product key generation.
To do a renewal form you can either modify that existing payment form (letting it accept new orders or renewals) OR create a separate renewal form where the customer enters their product key OR do automatic renewals using PayPal's API.