pluxee-tax-engine
v1.1.0
Published
India FY 2024-25 income tax calculator with Pluxee employee benefits optimisation. Supports Old and New Regime, surcharge, cess, and Section 87A rebate.
Maintainers
Readme
pluxee-tax-engine
India FY 2024-25 income tax calculator with Pluxee employee benefits optimisation.
Install
npm install pluxee-tax-engineUsage
import { calculateTax } from "pluxee-tax-engine";
const result = calculateTax({
grossSalary: 1200000, // ₹12,00,000
ageGroup: "under60", // "under60" | "60to79" | "80plus"
regime: "new", // "new" | "old"
benefits: {
mealVouchers: 26400, // exempt up to ₹26,400/yr (old regime only)
transportAllowance: 19200, // exempt up to ₹19,200/yr (old regime only)
lta: 0, // LTA claimed (old regime only)
phoneInternet: 12000, // exempt up to ₹12,000/yr (both regimes)
npsEmployer: 60000, // 80CCD(2) — up to 10% of basic (both regimes)
},
oldRegimeDeductions: {
section80C: 150000, // up to ₹1,50,000
healthInsurance80D: 25000, // up to ₹25,000 (₹50,000 for seniors)
},
});
console.log(result.withoutBenefits.totalTax); // tax without Pluxee
console.log(result.withBenefits.totalTax); // tax with Pluxee
console.log(result.annualSaving); // annual saving
console.log(result.monthlySaving); // monthly savingFormatters
import { formatINR, formatPercent, parseINR } from "pluxee-tax-engine";
formatINR(1200000) // "₹12,00,000"
formatINR(1200000, true) // "₹12.00L" (compact)
formatPercent(5.96) // "5.96%"
parseINR("₹12,00,000") // 1200000Tax rules covered
- Old Regime slabs: Under 60 / Senior (60–79) / Super Senior (80+) nil slabs
- New Regime slabs: FY 2024-25 default (₹75,000 standard deduction)
- Section 87A rebate: New regime ≤ ₹7L, Old regime ≤ ₹5L
- Surcharge: 10% / 15% / 25% / 37% above ₹50L / ₹1Cr / ₹2Cr / ₹5Cr
- Cess: 4% Health & Education cess on final tax
- Pluxee exemptions: regime-aware (meal/transport/LTA only in Old; NPS + phone in both)
