Generally a written notice is required 30 days before the end of the lease. There are some exceptions, please refer to Section 4 of your lease for your exact terms.