# nepali-tax-pro-max

> नेपाली कर — Nepal IRD income tax, TDS, VAT, capital gains, SSF, CIT, PF, payroll, and corporate tax calculations. Fiscal-year-aware (FY 2081/82+), TypeScript-first, zero deps, ESM+CJS. For accountants, payroll software, fintech, and ERPs.

Latest version **2.0.0** (published 2026-11-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install nepali-tax-pro-max
pnpm add nepali-tax-pro-max
yarn add nepali-tax-pro-max
bun add nepali-tax-pro-max
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2026-11-28 |
| First published | 2026-05-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 0 |
| Unpacked size | 341.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | l3lackcurtains |
| Maintainers | l3lackcurtains |
| Keywords | nepali, nepali-tax, nepal-tax, income-tax, tds, vat, capital-gains, ssf, social-security-fund, cit, provident-fund, payroll, ird, ird-nepal, nepal-finance, corporate-tax, fiscal-year, typescript, nepali-tax-pro-max |

## Links

- npm: https://www.npmjs.com/package/nepali-tax-pro-max
- Repository: https://github.com/l3lackcurtains/nepali-tax-pro-max
- Homepage: https://github.com/l3lackcurtains/nepali-tax-pro-max#readme
- Issues: https://github.com/l3lackcurtains/nepali-tax-pro-max/issues
- npm.io page: https://npm.io/package/nepali-tax-pro-max

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2026-11-28
- 1.1.0 — 2026-05-01
- 1.0.0 — 2026-05-01

## README

<div align="center">

# nepali-tax-pro-max

### नेपाली कर — pro-max edition

The complete Nepal tax calculator. **IRD income tax slabs (single/couple, SSF/disabled/pensioner/women), TDS by category, VAT 13%, capital gains, SSF (31%), PF, CIT, corporate tax, and full payroll pipelines — fiscal-year-versioned, TypeScript-first, zero dependencies.**

[![npm version](https://img.shields.io/npm/v/nepali-tax-pro-max.svg)](https://www.npmjs.com/package/nepali-tax-pro-max)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
![TypeScript](https://img.shields.io/badge/TypeScript-strict-3178c6?logo=typescript&logoColor=white)
![Zero deps](https://img.shields.io/badge/dependencies-0-success)
![FY](https://img.shields.io/badge/FY-2081%2F82%20%2B%202082%2F83%20%2B%202083%2F84-orange)

</div>

---

## 📑 Table of Contents

1. [Highlights](#-highlights)
2. [Install](#-install)
3. [Quick Start](#-quick-start)
4. [Mental Model](#-mental-model)
5. [Income Tax](#-income-tax)
6. [TDS](#-tds)
7. [VAT](#-vat)
8. [Capital Gains](#-capital-gains)
9. [SSF / PF / CIT](#-ssf--pf--cit)
10. [Corporate Tax](#-corporate-tax)
11. [Full Payroll](#-full-payroll)
12. [Vendor Bills](#-vendor-bills--vat--tds)
13. [Full API Reference](#-full-api-reference)
14. [Recipes](#-recipes)
15. [Maintenance](#-maintenance--annual-updates)

---

## ✨ Highlights

- 🇳🇵 **Built for Nepal** — IRD slabs, NPR rupees, fiscal-year-aware (Shrawan–Ashad)
- 📅 **Fiscal-year-versioned** — ships **2081/82, 2082/83 and 2083/84**; never mutate historical rates
- 👥 **Full profile coverage** — single/couple, SSF members, disabled, pensioner, women rebate, non-resident, remote-area
- 💼 **15+ TDS categories** — rent, royalty, dividend, interest, commission, lottery, …
- 💰 **VAT calculator** — 13%, exclusive/inclusive, threshold checker
- 📈 **Capital gains** — listed/unlisted shares, land/building, individual/entity, short/long-term
- 🏛️ **SSF (31%)** — full sub-allocation (medical, accident, dependent, retirement)
- 🧾 **Vendor bill calculator** — service + VAT + TDS pipeline in one call
- 💵 **Full payroll** — gross → SSF/PF → deductions → slabs → monthly net + monthly TDS
- 📦 **Tree-shakeable** — pure ESM exports, `sideEffects: false`
- 🎯 **TypeScript-first** — strict mode, exhaustive type exports, JSDoc on every function
- 🪶 **Zero dependencies** — works in Node, Deno, Bun, the browser, Workers

---

## 📦 Install

```bash
# npm
npm install nepali-tax-pro-max

# pnpm
pnpm add nepali-tax-pro-max

# yarn
yarn add nepali-tax-pro-max

# bun
bun add nepali-tax-pro-max
```

Works with **Node ≥ 22**, modern browsers, Deno, Bun, Cloudflare Workers, Vercel Edge.

---

## ⚡ Quick Start

```ts
import {
  calculateIncomeTax,
  calculateTDS,
  calculateVAT,
  calculateBill,
  calculatePayroll,
  calculateCapitalGains,
  calculateSSF,
  calculatePF,
  calculateCorporateTax,
} from "nepali-tax-pro-max";

// Income tax
calculateIncomeTax({ income: 1_000_000, status: "single" });
// { tax: 85000, taxableIncome: 1000000, effectiveRate: 0.085, ... }

// TDS — rent 10%
calculateTDS({ amount: 100_000, type: "rent" }).tds;          // 10000

// VAT 13%
calculateVAT(1000).total;                                     // 1130
calculateVAT(1130, { inclusive: true }).vat;                  // 130

// Vendor bill (service + VAT + TDS)
calculateBill({
  serviceAmount: 100_000,
  applyVAT: true,
  tdsType: "service-vat-registered",
});
// { vat: 13000, tds: 1500, payableToVendor: 111500, ... }

// Capital gains — listed shares, individual, > 365 days = 5%
calculateCapitalGains({
  gain: 100_000,
  asset: "shares-listed",
  ownerType: "individual",
  holdingDays: 400,
}).tax;                                                       // 5000

// SSF 31% on basic
calculateSSF(50_000);
// { employee: 5500, employer: 10000, total: 15500, breakdown: {...} }

// Corporate tax — bank 30%
calculateCorporateTax({ profit: 10_000_000, category: "bank-financial" }).tax;
// 3000000

// Full payroll
calculatePayroll({
  monthlyBasic: 50_000,
  monthlyAllowances: 20_000,
  festivalBonus: true,
  profile: { status: "single", isSSFMember: true },
  deductions: { lifeInsurance: 30_000 },
});
// { annualGross: 910000, annualTax: ..., monthlyNet: ..., ssfEmployee: ..., ... }
```

---

## 🧠 Mental Model

| Rule | Why |
|---|---|
| **Default fiscal year is pinned to `"2081/82"`** (Shrawan 1, 2081 → Ashad 31, 2082). | Deliberate: the default never moves under you, so an upgrade cannot silently change a computed tax amount. Opt in to a newer FY with `{ fiscalYear: "2083/84" }`. |
| **Three fiscal years are shipped** — `"2081/82"`, `"2082/83"`, `"2083/84"`. | `getSupportedFiscalYears()` lists them; `getRates(fy)` throws a clear `RangeError` for anything else (no silent fallback). |
| **All rate data is keyed by fiscal year** in `RATES_BY_FY`. | Never mutate historical rates — add new files for new FYs. |
| **Single vs couple slabs differ** (2081/82 and 2082/83). | Couple gets a wider basic exemption (Rs 6 lakh vs 5 lakh). FY 2083/84 deleted the couple ladder — couple and single now share one table. |
| **SSF members skip the 1% SST.** | Pass `profile: { isSSFMember: true }`. |
| **Non-resident is flat 25%** — no slabs. | Pass `profile: { residency: "non-resident" }`. |
| **Salary TDS uses slabs**; everything else is flat-rate per category. | `calculateTDS` rejects `"salary"` — use `calculateSalaryTDS` or `calculatePayroll`. |
| **VAT is computed on service amount, TDS is computed on service amount.** | TDS is **not** on the VAT (per IRD). |
| **All amounts are NPR rupees** (`number`); paisa precision via half-up rounding. | If you need BigInt-precise paisa, use `nepali-numbers-pro-max` for the math. |

---

## 💼 Income Tax

```ts
import { calculateIncomeTax, getSlabs, getEffectiveRate, getMarginalRate } from "nepali-tax-pro-max";

calculateIncomeTax({ income: 1_000_000, status: "single" });
// {
//   fiscalYear: "2081/82",
//   grossIncome: 1000000,
//   taxableIncome: 1000000,
//   tax: 85000,
//   effectiveRate: 0.085,
//   perBracket: [
//     { bracket: { from: 0, to: 500000, rate: 0.01 }, amountInBracket: 500000, tax: 5000 },
//     { bracket: { from: 500000, to: 700000, rate: 0.10 }, amountInBracket: 200000, tax: 20000 },
//     { bracket: { from: 700000, to: 1000000, rate: 0.20 }, amountInBracket: 300000, tax: 60000 },
//   ],
//   notes: [],
// }

// Profile flags
calculateIncomeTax({
  income: 1_000_000,
  profile: { isSSFMember: true, isWomanRebate: true, remoteArea: "A" },
});

// Helpers
getSlabs("single");           // FY 2081/82 single slabs
getEffectiveRate(1_000_000);  // 0.085
getMarginalRate(800_000);     // 0.20
```

### FY 2081/82 slabs (the default)

| Bracket | Single (Rs) | Couple (Rs) | Rate |
|---|---|---|---|
| 1 (SST) | 0 – 5,00,000 | 0 – 6,00,000 | 1% (0% if SSF) |
| 2 | 5,00,001 – 7,00,000 | 6,00,001 – 8,00,000 | 10% |
| 3 | 7,00,001 – 10,00,000 | 8,00,001 – 11,00,000 | 20% |
| 4 | 10,00,001 – 20,00,000 | 11,00,001 – 20,00,000 | 30% |
| 5 | 20,00,001 – 50,00,000 | 20,00,001 – 50,00,000 | 36% |
| 6 | Above 50,00,000 | Above 50,00,000 | 39% |

### FY 2082/83 slabs

Identical to FY 2081/82, except deposit-interest TDS rises from 5% to 6%.

### FY 2083/84 slabs

The couple ladder was **deleted** — single and couple now share one table.

| Bracket | Single & Couple (Rs) | Rate |
|---|---|---|
| 1 (SST) | 0 – 10,00,000 | 1% (0% if SSF) |
| 2 | 10,00,001 – 15,00,000 | 10% |
| 3 | 15,00,001 – 25,00,000 | 20% |
| 4 | 25,00,001 – 40,00,000 | 27% |
| 5 | Above 40,00,000 | 29% |

Other FY 2083/84 changes: deposit-interest TDS 6%; exam-fee TDS 15% → 5%; consumer-committee
withholding removed (0%); a new **insurance-agent** TDS category at 20%; donation deduction cap
raised to Rs 3 lakh; a **5% VAT** tier (use `{ reduced: true }`); and listed-share capital gains
for an individual at **3.75%** (held more than 365 days) / **5%** (365 days or less).

> ⚠️ **Listed-share CGT in FY 2083/84.** The Finance Act 2083 set listed-share capital gains for
> an individual at 7.5% / 10%. A gazette notice dated **22 Sep 2026** superseded that with
> **3.75% / 5%**, which is what this package ships. If your filing position follows the
> original Act, override the rates explicitly:
> `calculateCapitalGains({ asset: "shares-listed-individual", …, capitalGains: { "shares-listed-individual-short": 0.10, "shares-listed-individual-long": 0.075 } })`.

### Profile modifiers

| Flag | Effect |
|---|---|
| `isSSFMember: true` | 1% SST slab becomes 0% (SSF members are exempt) |
| `isDisabled: true` | **Deduction** from total income: 50% of the first slab (Rs 2.5 lakh single / 3 lakh couple), capped at actual income |
| `isPensioner: true` | **Deduction** from total income: 25% of the first slab (Rs 1.25 lakh single / 1.5 lakh couple), or the actual `pensionIncome` if lower |
| `isWomanRebate: true` | 10% rebate on tax (employment income, single only) |
| `residency: "non-resident"` | Flat 25% on Nepal-source income, no slabs |
| `remoteArea: "A"` to `"E"` | Additional Rs 50k → Rs 10k deduction |

---

## 🧾 TDS

```ts
import { calculateTDS, calculateSalaryTDS, getTDSRate } from "nepali-tax-pro-max";

calculateTDS({ amount: 100_000, type: "rent" });
// { tds: 10000, rate: 0.10, netToVendor: 90000, ... }

calculateTDS({ amount: 50_000, type: "service-vat-registered" }).tds;   // 750  (1.5%)
calculateTDS({ amount: 50_000, type: "service-non-vat" }).tds;          // 7500 (15%)
calculateTDS({ amount: 100_000, type: "lottery" }).tds;                 // 25000

calculateSalaryTDS({ annualIncome: 1_000_000 });
// { annualTax: 85000, monthlyTds: 7083.33, fiscalYear: "2081/82" }

getTDSRate("commission");    // 0.15
```

### TDS categories

Rates shown are for the **default FY 2081/82**. Where a later FY changes a rate, it is noted.

| Category | Rate | FY changes |
|---|---|---|
| `rent` | 10% | |
| `rent-vehicle` | 1.5% | |
| `service-vat-registered` | 1.5% | |
| `service-non-vat` | 15% | |
| `service-non-resident` | 15% | |
| `royalty` | 15% | |
| `dividend-resident` / `dividend-non-resident` | 5% | |
| `interest-bank-individual` | 5% | 6% from FY 2082/83 |
| `interest-other` | 15% | |
| `commission` | 15% | |
| `lottery` | 25% | |
| `meeting-allowance` | 15% | |
| `aircraft-lease` | 10% | |
| `reinsurance-non-resident` | 1.5% | |
| `consumer-committee` | 1.5% | 0% from FY 2083/84 (withholding removed) |
| `exam-fee` | 15% | 5% from FY 2083/84 |
| `insurance-agent` | 15% | 20% from FY 2083/84 |

---

## 💰 VAT

```ts
import { calculateVAT, extractVAT, addVAT, isAboveVATThreshold } from "nepali-tax-pro-max";

calculateVAT(1000);                      // { base: 1000, vat: 130, total: 1130, inclusive: false }
calculateVAT(1130, { inclusive: true }); // { base: 1000, vat: 130, total: 1130, inclusive: true }

extractVAT(1130);                        // 130
addVAT(1000);                            // 130

isAboveVATThreshold(60_00_000, "goods");   // true (above Rs 50 lakh)
isAboveVATThreshold(40_00_000, "service"); // true (above Rs 30 lakh)
```

VAT rate: **13%** standard in every shipped FY (thresholds: **Rs 50 lakh goods / Rs 30 lakh
services**). FY 2083/84 adds a **5% reduced tier**:

```ts
calculateVAT(1000, { fiscalYear: "2083/84", reduced: true });
// { base: 1000, vat: 50, total: 1050, inclusive: false }

getVATRate("2083/84", "reduced"); // 0.05
```

---

## 📈 Capital Gains

```ts
import { calculateCapitalGains } from "nepali-tax-pro-max";

// Listed shares, individual, > 365 days = 5%
calculateCapitalGains({
  gain: 100_000,
  asset: "shares-listed",
  ownerType: "individual",
  holdingDays: 400,
});
// { rate: 0.05, tax: 5000, netProceeds: 95000, ... }

// Land, individual, ≥ 5 years = 5%
calculateCapitalGains({
  gain: 1_000_000,
  asset: "land",
  ownerType: "individual",
  holdingDays: 10 * 365,
}).tax;                                                       // 50000
```

| Asset | Rate |
|---|---|
| Listed shares — individual, < 365 days | 7.5% |
| Listed shares — individual, held more than 365 days | 5% |
| Listed shares — entity | 10% |
| Unlisted shares — individual | 10% |
| Unlisted shares — entity | 15% |
| Land/building — individual, < 5 years | 7.5% |
| Land/building — individual, held more than 5 years | 5% |
| Land/building — entity | 1.5% (advance) |

---

## 🏛️ SSF / PF / CIT

```ts
import { calculateSSF, calculatePF, calculateCIT } from "nepali-tax-pro-max";

calculateSSF(50_000);
// {
//   basicSalary: 50000,
//   employee: 5500,
//   employer: 10000,
//   total: 15500,
//   breakdown: { medical: 1610, accident: 700, dependent: 135, retirement: 13055 },
// }

calculatePF(50_000);
// { employee: 5000, employer: 5000, total: 10000 }

calculatePF(50_000, { employeeRate: 0.15 });   // custom

calculateCIT(500_000);
// { contribution: 500000, cappedContribution: 300000, cap: 300000, excess: 200000, ... }

calculateCIT(600_000, { isSSFMember: true });
// SSF cap is 500k
// { cappedContribution: 500000, cap: 500000, ... }
```

| Scheme | Employee | Employer | Notes |
|---|---|---|---|
| **SSF** | 11% | 20% | Total 31% on basic. SSF members skip 1% SST. |
| **PF** | 10% | 10% | Standard provident fund. |
| **CIT** | voluntary | — | Capped at Rs 5 lakh (all approved retirement funds). |

---

## 🏢 Corporate Tax

```ts
import { calculateCorporateTax, getCorporateRate } from "nepali-tax-pro-max";

calculateCorporateTax({ profit: 10_000_000, category: "standard" }).tax;          // 2,500,000
calculateCorporateTax({ profit: 10_000_000, category: "bank-financial" }).tax;    // 3,000,000
calculateCorporateTax({ profit: 10_000_000, category: "special-industry" }).tax;  // 2,000,000

getCorporateRate("export");  // 0.20
```

| Category | Rate |
|---|---|
| `standard` | 25% |
| `bank-financial` / `insurance` / `telecom` / `petroleum` / `capital-market` / `tobacco-alcohol` | 30% |
| `special-industry` (manufacturing) / `export` | 20% |

---

## 💵 Full Payroll

```ts
import { calculatePayroll } from "nepali-tax-pro-max";

calculatePayroll({
  monthlyBasic: 50_000,
  monthlyAllowances: 20_000,
  festivalBonus: true,            // adds 1 month gross as Dashain bonus
  profile: { status: "single", isSSFMember: true },
  deductions: { lifeInsurance: 30_000 },
  retirementScheme: "ssf",        // "ssf" | "pf" | "none"
});
// {
//   fiscalYear: "2081/82",
//   annualGross: 910000,        // 13 × 70000
//   ssfEmployee: 71500,         // 11% × 650000 (basic only)
//   ssfEmployer: 130000,        // 20% × 650000
//   annualDeductions: ...,
//   annualWithheld: ...,        // all deductions actually withheld from pay
//   taxableIncome: ...,
//   annualTax: ...,
//   monthlyTds: ...,
//   annualNet: ...,
//   monthlyNet: ...,
//   notes: [...],
// }
```

Pipeline:
1. **Annualize** — 12 × monthly + festival bonus
2. **SSF or PF** on basic
3. **Cap deductions** (life insurance ≤ 40k, health ≤ 20k, donation ≤ 5% of taxable income before the donation or 100k, retirement ≤ 500k for all approved retirement funds)
4. **Apply slabs** to taxable income
5. **Apply rebates** (women, etc.)
6. **Annual net** = gross − all withheld deductions (`annualWithheld`) − tax
7. **Monthly TDS** = annualTax / 12

---

## 🧾 Vendor Bills (VAT + TDS)

```ts
import { calculateBill } from "nepali-tax-pro-max";

calculateBill({
  serviceAmount: 100_000,
  applyVAT: true,
  tdsType: "service-vat-registered",
});
// {
//   serviceAmount: 100000,
//   vat: 13000,
//   tds: 1500,            // 1.5% of service amount (NOT VAT)
//   grossInvoice: 113000, // service + VAT
//   payableToVendor: 111500,  // gross − TDS
//   payableToGovtVAT: 13000,
//   payableToGovtTDS: 1500,
// }

// Rent — no VAT, just TDS
calculateBill({ serviceAmount: 100_000, tdsType: "rent" });
// { tds: 10000, payableToVendor: 90000, ... }
```

---

## 🧰 Full API Reference

<details open>
<summary><strong>Income tax</strong></summary>

| Function | Description |
|---|---|
| `calculateIncomeTax(opts)` | Full slab calculation with profile + deductions. |
| `applySlabs(taxable, slabs)` | Pure: apply a slab table to a value. |
| `getSlabs(status?, fy?)` | Slab table for a status & FY. |
| `getEffectiveRate(income, status?, fy?)` | Effective tax rate (`tax / income`). |
| `getMarginalRate(income, status?, fy?)` | Marginal rate at a given income. |

</details>

<details open>
<summary><strong>TDS</strong></summary>

| Function | Description |
|---|---|
| `calculateTDS({ amount, type, fy? })` | TDS by category (returns `{ tds, rate, netToVendor }`). |
| `calculateSalaryTDS({ annualIncome, status?, profile?, deductions?, fy? })` | Slab-based annual + monthly TDS. |
| `getTDSRate(type, fy?)` | Lookup rate. |
| `totalDeductions(d, fy?, isSSFMember?, taxableForDonation?)` | Sum capped deductions. |

</details>

<details open>
<summary><strong>VAT</strong></summary>

| Function | Description |
|---|---|
| `calculateVAT(amount, opts?)` | Base/vat/total breakdown. |
| `extractVAT(totalInclusive, fy?)` | VAT amount from inclusive total. |
| `addVAT(base, fy?)` | VAT amount on top of exclusive base. |
| `getVATRate(fy?, tier?)` | Standard rate (13%), or `"reduced"` (5%, FY 2083/84 only). |
| `getVATThreshold("goods" \| "service", fy?)` | Registration threshold. |
| `isAboveVATThreshold(turnover, type, fy?)` | True if turnover triggers registration. |

</details>

<details open>
<summary><strong>Capital gains</strong></summary>

| Function | Description |
|---|---|
| `calculateCapitalGains({ gain, asset, ownerType, holdingDays?, fy? })` | High-level — picks the right canonical key. |
| `getCapitalGainsRate(canonicalKey, fy?)` | Direct lookup. |

`asset`: `"shares-listed" \| "shares-unlisted" \| "land"`. `ownerType`: `"individual" \| "entity"`.

</details>

<details open>
<summary><strong>SSF / PF / CIT</strong></summary>

| Function | Description |
|---|---|
| `calculateSSF(basic, opts?)` | 11%/20% with 4-way breakdown. |
| `calculatePF(basic, opts?)` | 10%/10% (rates configurable). |
| `calculateCIT(contribution, opts?)` | Capped + excess. |

</details>

<details open>
<summary><strong>Corporate tax</strong></summary>

| Function | Description |
|---|---|
| `calculateCorporateTax({ profit, category, fy? })` | Single-rate per category. |
| `getCorporateRate(category, fy?)` | Lookup. |

</details>

<details open>
<summary><strong>Payroll & Bills</strong></summary>

| Function | Description |
|---|---|
| `calculatePayroll(opts)` | Full pipeline (gross → net). |
| `calculateBill({ serviceAmount, applyVAT?, tdsType?, fy? })` | Service + VAT + TDS breakdown. |

</details>

<details open>
<summary><strong>Rates / data</strong></summary>

| Function / Constant | Description |
|---|---|
| `getRates(fy?)` | Full `RatesSnapshot` for a FY. |
| `getSupportedFiscalYears()` | List of FYs in the registry (`"2081/82"`, `"2082/83"`, `"2083/84"`). |
| `RATES_BY_FY` | Map of FY → snapshot. |
| `RATES_FY_2081_82` | Snapshot for FY 2081/82 (the default). |
| `RATES_FY_2082_83` | Snapshot for FY 2082/83. |
| `RATES_FY_2083_84` | Snapshot for FY 2083/84. |
| `DEFAULT_FISCAL_YEAR` | `"2081/82"` — **pinned**, so an upgrade never silently changes a computed amount. Pass `fiscalYear` to opt into a newer FY. |

</details>

<details open>
<summary><strong>TypeScript types</strong></summary>

Every public type is exported — import them for end-to-end type safety:

```ts
import type {
  // Inputs
  BillOptions,
  CapitalGainsOptions,
  CorporateTaxOptions,
  IncomeTaxOptions,
  PayrollOptions,
  SalaryTdsOptions,
  TdsOptions,
  VatOptions,
  TaxProfile,
  // Results
  BillResult,
  CapitalGainsResult,
  CitResult,
  CorporateTaxResult,
  IncomeTaxResult,
  PayrollResult,
  PfResult,
  SalaryDeductions,
  SalaryTdsResult,
  SsfResult,
  TdsResult,
  VatResult,
  // Enums / unions / structures
  CapitalGainsAsset,
  CorporateCategory,
  FilingStatus,
  FiscalYear,
  RatesSnapshot,
  SlabSet,
  TaxSlab,
  TdsCategory,
} from "nepali-tax-pro-max";
```

</details>

---

## 🎯 Recipes

### Salary slip (employee view)

```ts
import { calculatePayroll, formatNPR } from "nepali-tax-pro-max";
// (formatNPR from nepali-numbers-pro-max if you also use that — totally optional)

const slip = calculatePayroll({
  monthlyBasic: 80_000,
  monthlyAllowances: 30_000,
  festivalBonus: true,
  profile: { status: "single", isSSFMember: true },
  deductions: { lifeInsurance: 25_000, healthInsurance: 15_000 },
});

console.log(`Annual gross: Rs ${slip.annualGross.toLocaleString()}`);
console.log(`Monthly TDS: Rs ${slip.monthlyTds.toLocaleString()}`);
console.log(`Monthly net: Rs ${slip.monthlyNet.toLocaleString()}`);
```

### Quarterly tax estimate

```ts
import { calculateIncomeTax } from "nepali-tax-pro-max";

const annual = calculateIncomeTax({ income: 1_500_000, status: "couple" });
const quarterly = annual.tax / 4;
console.log(`Quarterly advance: Rs ${quarterly}`);
```

### Vendor bill workflow

```ts
import { calculateBill } from "nepali-tax-pro-max";

const bill = calculateBill({
  serviceAmount: 250_000,
  applyVAT: true,
  tdsType: "service-vat-registered",
});

// Pay the vendor:
console.log(`Cheque to vendor: Rs ${bill.payableToVendor}`);
// Deposit to IRD:
console.log(`VAT to IRD: Rs ${bill.payableToGovtVAT}`);
console.log(`TDS to IRD: Rs ${bill.payableToGovtTDS}`);
```

### Compare SSF vs PF for an employee

```ts
import { calculatePayroll } from "nepali-tax-pro-max";

const opts = { monthlyBasic: 50_000, monthlyAllowances: 0 };

const ssfRun = calculatePayroll({
  ...opts,
  profile: { status: "single", isSSFMember: true },
});
const pfRun = calculatePayroll({
  ...opts,
  profile: { status: "single" },
});

console.log(`SSF take-home: Rs ${ssfRun.monthlyNet}`);
console.log(`PF take-home:  Rs ${pfRun.monthlyNet}`);
```

### Capital gains on a stock sale

```ts
import { calculateCapitalGains } from "nepali-tax-pro-max";

const result = calculateCapitalGains({
  gain: 250_000,
  asset: "shares-listed",
  ownerType: "individual",
  holdingDays: 300,    // short-term
});
console.log(`Tax on gain: Rs ${result.tax}`);   // 18,750 (7.5%)
```

---

## 🔧 Maintenance / Annual Updates

Every Nepali fiscal year (Jestha 15 budget speech) brings new rates. Updating:

1. Copy `src/data/fy-2081-82.ts` to `src/data/fy-NEW.ts`.
2. Update rates per the new Finance Act.
3. Add the new entry to `RATES_BY_FY` in `src/data/index.ts`.
4. Bump `DEFAULT_FISCAL_YEAR` to the new FY.
5. Add a regression test: `calculateIncomeTax({ income, fiscalYear: "OLD" })` should still return the old result.
6. Bump minor version, ship.

**Never** mutate a published FY file — historical accuracy matters for past tax filings.

### Verification sources

- 🏛️ [IRD (ird.gov.np)](https://ird.gov.np) — Finance Act PDFs, TDS booklet
- 💰 [Ministry of Finance (mof.gov.np)](https://mof.gov.np) — Budget Speech
- 🏛️ [SSF (ssf.gov.np)](https://ssf.gov.np) — Contribution schedule
- 📊 [ICAN (ican.org.np)](https://ican.org.np) — Tax bulletin
- 📕 [Nepal Law Commission](https://nepallawcommission.gov.np) — Income Tax Act 2058 consolidated

Cross-check via **PwC Nepal Tax Facts**, **KPMG Nepal Tax Card**, and **Deloitte Nepal Highlights** annual PDFs.

---

## ⚠️ Disclaimer

This package implements tax math per published rate tables. It is **not** legal or financial advice. For binding tax filings, consult a licensed Nepali Chartered Accountant (CA). Authors and contributors disclaim liability for any reliance on these calculations.

---

## 🤝 Contributing

PRs welcome. Specifically wanted:
- Verified rate tables for older fiscal years (2079/80, 2080/81, …)
- Edge-case test coverage
- Special-industry tax rates / rebates / incentives

```bash
npm install
npm test
npm run typecheck
npm run build
```

---

## 📜 License

MIT © 2026 [l3lackcurtains](https://github.com/l3lackcurtains)

---

<div align="center">

**Made with ❤️ for the Nepali developer community.**

बनाइएको नेपाली डेभलपर समुदायको लागि।

</div>

---
_Source: https://npm.io/package/nepali-tax-pro-max · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
