Only an active contract can be renewed. If the contract has expired then a new contract has to be created from the latest duration has to be created.