(e) Termination for no cause under terms of written rental agreement. If there is a written rental agreement, the notice to terminate for no cause shall
be at least 30 days before the end or expiration of the stated term of the rental
agreement if the tenancy has continued for two years or less. The notice to terminate
for no cause shall be at least 60 days before the end or expiration of the term of
the rental agreement if the tenancy has continued for more than two years. If there
is a written week-to-week rental agreement, the notice to terminate for no cause shall
be at least seven days; however, a notice to terminate for nonpayment of rent shall
be as provided in subsection (a) of this section.