Security deposits are NOT to be used instead of payment of rent, since the purpose of a security deposit is to pay for any damage caused by the tenant or their guests.  If you do not pay any rent, including the last month you are in the unit, you will be subject to eviction proceedings.  You are entitled to an accounting of your security deposit as well as the appropriate refund, within 30 days of your moving out of the unit.