How do I change price after X years?
I'm a little unclear about the requirements, but if the status of a contact's year is known then perhaps you can use CiviDiscount. 

Automatic discounts can be applied to existing members and contact types.