Normally the contract says" You can break the contract by providing 1 or 2 or sometimes 3 months notice to the landlord' If you fail to provide the notice, landlord will charge you the rent for the notice period.