As a tenant, you may have to pay compensation if you give notice early.
Nine-year lease: 3, 2 or 1 month's rent if the lease ends during the first, second or third lease year respectively.
Short-term lease (from 2019): 1.5, 1 or 0.5 month's rent if the lease ends during the first, second or third lease year respectively.
The end date of the lease determines which compensation is due, not the date on which you send the notice letter. With a nine-year lease, no notice compensation is due after the first three years.
In certain exceptions, such as an unregistered lease, the compensation may not apply.