1) landlord cannot deduct painting charges . there is no clause in the contract that painting charges have to be borne by the licencee . you are entitled to refund of Rs 40000 towards painting charges
2) only Rs 9,000 towards general repairs would be deductible
3)you can aterminate agreement by notice period of 2 months only after expiry of 24 months