Compute HRA exemption (+80GG)
compute_hraCalculate HRA exemption period-wise under the old tax regime, applying Rule 2A limits and city-based metro rates; also compute the 80GG rent deduction when no HRA was received.
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. Give each period's city: the tool checks it against the fy's rule-pack metro list (FY 2025-26: 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).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "compute_hra"
}
}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) |