calculate_surcharge
Calculate the surcharge and marginal relief applicable to a given total income and base tax, for FY2025-26 under the new (cap 25%) or old (up to 37%) tax regime.
Instructions
Calculate surcharge and marginal relief for a given income and base tax.
Use when computing surcharge as a standalone calculation, separate from the full income tax tool. The income tax tool uses this logic internally.
Args: total_income: Total income in rupees. base_tax: Base tax amount before surcharge. regime: 'new' (capped at 25%) or 'old' (up to 37%).
Returns: Standard envelope with surcharge rate, before/after marginal relief, and cess base.
Notes: FY2025-26 rates. New regime surcharge capped at 25%.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| regime | Yes | 'new' or 'old' tax regime | |
| base_tax | Yes | Base tax amount before surcharge | |
| total_income | Yes | Total income in rupees |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||