What is Taiwan Payroll?
Taiwan Payroll is an open-source calculation engine for Taiwan’s statutory labor insurance, health insurance, pension, occupational accident, and second-generation NHI supplementary premium. It supports multiple identities, pro‑rated calculations for mid‑month join/leave, generation of NHI supplementary premium filing CSV files, and old‑age pension benefit trials. The engine is available as TypeScript (npm), Python (PyPI), and an MCP server for AI assistants.
How to use Taiwan Payroll?
Install the core library via npm install taiwan-payroll or pip install taiwan-payroll. For AI assistants, use the MCP server remotely at https://taiwan-payroll.simoko.workers.dev/mcp (Streamable HTTP) or locally with npx taiwan-payroll-mcp (stdio). Call functions like createPayrollEngine({ year }) then engine.calculate(...) with salary and identity parameters.
Key features of Taiwan Payroll
- Zero runtime dependencies in core packages.
- Cross‑language consistency between TypeScript and Python.
- Built‑in official parameters for years 2024–2026.
- Generates NHI supplementary premium filing CSV (Big5).
- Calculates old‑age pension benefits (annuity, lump sum, single payment).
- Pro‑rated calculations follow official “end‑of‑month attribution” rule for health insurance.
Use cases of Taiwan Payroll
- Compute employee and employer contributions for a given monthly salary and identity.
- Pro‑rate labor insurance, pension, and health insurance for employees joining or leaving mid‑month.
- Generate NHI supplementary premium filing files for all six categories.
- Trial old‑age pension amounts (annuity, lump sum, single payment) based on official formulas.
Comments