In this Slideshare, you'll find an alternative to ending contracts based on a number of days.
Most contracts include a clause that allows them to be terminated early. So, even though your contract may be written to end on a certain date, most give the client the ability to terminate early.
Typically, there's a paragraph that states something to the effect that the client can end the contract early by providing XX number of days' notice.
Feel free to leave in additional questions you may have in the comment section below!
You may also like: You Want Security, But You're Not Willing to Work for It