# Indonesian Payroll Calculator: THR, BPJS, PPh 21

> Work out THR, BPJS contributions and the December PPh 21 for a whole staff list, with every step shown so you can check it.

Indonesian Payroll Calculator: THR, BPJS, PPh 21 is a paid AI agent skill on Agensi by Singgih Rochmad Saputro, in Finance & Accounting. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $1 (one-time purchase)
- Creator: [Singgih Rochmad Saputro](https://www.agensi.io/creators/singgihrs)
- Category: [Finance & Accounting](https://www.agensi.io/skills/finance-accounting)
- Version: 1.0
- Last updated: 2026-12-04
- Security: scan passed (2026-12-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/indonesian-payroll-calculator-thr-bpjs-pph-21
- Tags: finance, business, productivity

## What it does

- Calculates each employee's THR, full or prorated by months of service, with the payment deadline
- Handles daily and piece-rate workers and employees who left before the holiday
- Splits BPJS Kesehatan and Ketenagakerjaan into the company's share and the payslip deduction
- Works out the year's income tax and how much to withhold in December
- Shows each step of the arithmetic so you can explain it to employees
- Flags wages below the regional minimum and THR paid after the deadline

## Who it's for

- **Owners of small Indonesian businesses:** Know exactly how much THR and BPJS to pay each employee before payday, without a payroll system. Try: "How much THR do I owe my 8 staff for Natal? Here is their join date and salary."
- **HR and admin staff doing payroll in spreadsheets:** Check the spreadsheet's THR, BPJS and December tax figures against a calculation that shows its steps. Try: "Check the BPJS deductions in this staff CSV with UMK Rp5.400.000."
- **Bookkeepers and finance staff:** Settle the year's employee income tax in December and see who gets a refund. Try: "What should Budi's December PPh 21 be if TER withheld Rp2.450.000 so far?"

## About this skill

Indonesian small businesses get three payroll numbers wrong most often: THR for staff with under a year of service or who just left, the BPJS split with its wage caps, and the December income tax that has to make up for the monthly withholding. This skill calculates all three from a staff list (a CSV with Indonesian or English column names) or for one employee, and shows every step.

**THR Keagamaan**
- One month's wage (basic plus fixed allowances) after 12 months; months/12 of it from 1 month of service.
- Daily and piece-rate workers from their average monthly wage.
- Permanent staff dismissed within 30 days before the holiday still get it; fixed-term contracts that ended before it don't.
- Payment deadline 7 days before the holiday, and the 5% fine when paid late.

**BPJS contributions per month**
- Kesehatan 4% / 1% with the Rp12 juta ceiling and extra family members; JHT 3.7% / 2%; JP 2% / 1% with its yearly ceiling; JKK by risk group and JKM.
- Wages below the regional minimum (UMK) raised to it and flagged.
- The company's monthly cost and each employee's deduction.

**Year-end PPh 21**
- Gross income including the employer-paid JKK, JKM and BPJS Kesehatan, minus biaya jabatan and employee JHT and JP, minus PTKP, taxed at the Pasal 17 rates.
- The last month's withholding after what TER withheld from January to November, or the refund.

Amounts can be written the way people write them: 7,5jt, 850rb, Rp7.500.000. Runs offline on your computer; nothing is uploaded.

## Requires

- Python 3.8+

## Known limitations

Does not calculate the monthly TER withholding (the TER tables are not included); it settles the year in the last month from what was withheld. Daily and non-permanent workers' PPh 21, severance (pesangon), non-employee payments and staff who move to or from Indonesia mid-year are not covered. Rates that change yearly (UMK, JP ceiling) must be checked and passed as flags. A check, not tax advice: the tax office's calculation is what counts.

## Technical details

Python 3.8+ script using only the standard library, run by the AI agent in a terminal: scripts/payroll_id.py with subcommands thr, bpjs and pph21. Input: a CSV (comma, semicolon or tab separated; Indonesian or English headers such as nama/name, tanggal_masuk/join_date, gaji_pokok/basic, tunjangan_tetap/fixed_allowance, status_ptkp/ptkp) or flags for one employee. Output: Markdown tables, or JSON with --json. Exit code 0 = done, 1 = warnings to check, 2 = input error. Rates and ceilings that change (UMK, JKK rate, JP ceiling, Kesehatan ceiling) are flags with current defaults. Reads only the CSV named on the command line and writes nothing; no network access. references/rules.md lists each rule and its regulation (Permenaker 6/2016, Perpres 64/2020, UU HPP, PMK 168/2023). Works with any agent that can run Python, such as Claude Code, Codex or Cursor.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Indonesian Payroll Calculator: THR, BPJS, PPh 21 skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does Indonesian Payroll Calculator: THR, BPJS, PPh 21 do?

Work out THR, BPJS contributions and the December PPh 21 for a whole staff list, with every step shown so you can check it.

### Which AI agents support Indonesian Payroll Calculator: THR, BPJS, PPh 21?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Indonesian Payroll Calculator: THR, BPJS, PPh 21?

Connect your AI agent to Agensi through MCP, then ask it to use Indonesian Payroll Calculator: THR, BPJS, PPh 21 on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
