Hi,
The "Auto Terminate/Fixed Term" option under the product Pricing tab can be used to automatically terminate a product after a certain length of time.

What exactly would you like to happen when the contracted term comes to an end?