Be sure to give at least 30 days written notice (by certified mail or with proof if the notice is delivered in person) before you move out.
"You are responsible to pay rent for these 30 days and your landlord can deduct``unpaid rent""from your deposit."