Bismihi ta'āla
If the time period is over, you must recite a new contract, with new time-period and new mahr.
If you still have some time left for the temporary contract (let's say2 days left), and you both decide to extend, the man frees the woman for the remaining period, then recite the new contract together.
And Allah knows best