Ans:
Your landlord does not have the legal authority to demand rent during a notice period and not offset it against the deposit. When you depart the premises, your landlord is required to reimburse the security deposit you paid.