How it works
Your gross income is reduced by the standard deduction if you are salaried, and by the deductions you enter if you have chosen the old regime. What remains is taxable income.
That income is then run through the slabs for the financial year you selected. Each band taxes only the income falling inside it, which is why the effective rate is always below the top slab rate — a point the slab-by-slab table makes concrete.
More detail
The section 87A rebate is applied next, then surcharge if the income reaches those thresholds, then the health and education cess on the result. Marginal relief is applied where it bites, so a small rise in income can never cost a disproportionate amount of tax.
The rules for each financial year live in a versioned ruleset rather than in the calculator, so selecting a different year applies that year's law rather than adjusting this year's.
Once you know what tax takes, the savings rate calculator.