Old-regime style: exempt = min(HRA received, rent − 10% of salary, 40% or 50% of salary). Salary = basic + DA.