Old regime only — the new regime doesn't allow HRA exemption.
HRA exemption is the lowest of: (a) actual HRA received, (b) rent paid minus 10% of basic salary, (c) 50% of basic (metro) or 40% (non-metro).