Did you agree to rent for a specific lease term, even if there's nothing in writing? If you're just a month-to-month tenant, your obligations are described here
Quote Quoting Tenant's notice to end a periodic tenancy
To end a periodic rental agreement (for example, a month-to-month agreement), you must give your landlord proper written notice before you move.

You must give the landlord the same amount of notice as there are days between rent payments. This means that if you pay rent monthly, you must give the landlord written notice at least 30 days before you move. If you pay rent every week, you must give the landlord written notice at least seven days before you move. This is true even if the landlord has given you a 60-day notice to end the rental agreement and you want to leave sooner (see Landlord's notice to end a periodic tenancy.)