How to tell if the contract is expiring?