How to set expiration dates for a contract