Compute HRA exemption (+80GG)
compute_hraCompute House Rent Allowance (HRA) exemption under Income Tax Rule 2A for multiple periods, comparing actual HRA, rent minus 10% salary, and 50%/40% of salary. Also calculates 80GG deduction for renters without HRA.
Instructions
HRA exemption per Rule 2A: least of (actual HRA, rent minus 10% of salary, 50% metro / 40% non-metro of salary), computed period-wise. Salary = basic + retirement-forming DA + fixed-percentage turnover commission. Old regime only; metro list for FY 2025-26 is Delhi/Mumbai/Kolkata/Chennai. Also computes the 80GG alternative for rent payers with no HRA.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fy | No | 2025-26 | |
| regime | No | old | |
| periods | Yes | Homogeneous periods (amounts are per-period totals, not monthly) | |
| eightyGG | No | Compute 80GG instead (requires: no HRA received at any time in the year) |