Also, they can not deduct 2 months salary since salary is paid in arrears, unless you have not being paid for the past couple of months. Most likely your HR said that "your End of service will be deduced by 2 months salary".