House rent allowance exemptions are calculated using three provisions, and the least amount from the three is considered the tax benefit you can claim as part of HRA.
One of these provisions considers HRA as a specific percentage of your basic salary plus DA. For metro city residents, this percentage is 50%.
For non-metro residents, it is 40%. This is why HRA calculators need to know whether you live in metro or non-metro locations.