Compute HRA exemption (+80GG)
compute_hraCompute HRA exemption under Rule 2A or the 80GG deduction from period-wise salary, rent, and HRA data. Returns the least-of-three exemption for old-regime tax filing.
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 who received no HRA at any time in the year (the two are mutually exclusive).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fy | No | Fiscal year, e.g. '2025-26' (AY 2026-27) | 2025-26 |
| regime | No | HRA exemption and 80GG are both unavailable under the new regime | old |
| periods | No | Homogeneous periods (amounts are per-period TOTALS, not monthly). Split whenever salary, rent, HRA, or city changes. Required unless eightyGG is supplied. | |
| eightyGG | No | Compute the 80GG alternative instead of HRA (requires: no HRA received at any time in the year) |