Refer to the lease agreement, specifically to any cancellation clause.

If the lease agreement is month-by-month, then a calendar months notice is required to cancel the lease.

If the lease agreement is for a fixed period and there is no cancellation clause, then the tenant cannot cancel the lease except if the landlord breaches the lease, or agrees to the early cancellation of the lease.