Even though it is generally true that a tenant is entitled to give 30 days (no more, no less) notice, regardless of the day of the month that notice is given, there are other possibilities that may exist given the specifics of your circumstance and your lease. You need to take your lease to a qualified attorney!
This response neither constitutes legal advice nor creates an attorney-client relationship. This answer is provided solely for informational purposes, for use as a starting point when speaking directly with an attorney. I urge you to immediately contact an experienced criminal defense attorney admitted to practice law in your state before making any more decisions on this case.