If you move out before the end rent date:
-
this is usually considered early departure,
-
you may still be responsible for rent until the end of the agreed period,
-
unless a replacement tenant acceptable to the landlord and the agency is found
-
or the landlord agrees in writing to end the contract earlier.
Leaving the apartment and handing back the keys does not automatically end your rent obligation.
The key reference is what is written in the Tenancy Agreement and any written termination agreement.