Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Calculates Indian income tax, STCG/LTCG, F&O, advance tax and TDS for FY 2025-26 under old and new regimes.
68% 82%+14 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 15 of 22 without it.
My salary for FY 2025-26 is ₹25,00,000. What is my tax liability under the new tax regime, including the highest 30% slab portion and cess?
Calculates tax at 30% for income above ₹24,00,000.
3 of 3 safety checks passed
Calculate Indian income tax liability, STCG/LTCG on equity and F&O trades, advance tax installments, and TDS for FY 2025-26 — under both old and new tax regimes.
function Get-TaxNewRegime {
param([double]$Income)
# FY 2025-26 new regime slabs (post Budget 2025)
$slabs = @(
@{UpTo=400000; Rate=0},
@{UpTo=800000; Rate=0.05},
@{UpTo=1200000; Rate=0.10},
@{UpTo=1600000; Rate=0.15},
@{UpTo=2000000; Rate=0.20},
@{UpTo=2400000; Rate=0.25},
@{UpTo=[double]::MaxValue; Rate=0.30}
)
$tax = 0; $prev = 0
foreach ($slab in $slabs) {
if ($Income -le $prev) { break }
$taxable = [math]::Min($Income, $slab.UpTo) - $prev
$tax += $taxable * $slab.Rate
$prev = $slab.UpTo
}
# Rebate u/s 87A: nil tax if income <= 12,00,000
if ($Income -le 1200000) { $tax = 0 }
$cess = $tax * 0.04
return [PSCustomObject]@{ Tax=$tax; Cess=$cess; Total=[math]::Round($tax+$cess,2) }
}
Next to this one in the catalogue, plus more from the same author.