- Home
- Skills
- Finance & Accounting
- Indonesian Payroll Calculator: THR, BPJS, PPh 21
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.
$1
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 asking: “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 asking: “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 asking: “What should Budi's December PPh 21 be if TER withheld Rp2.450.000 so far?”
Indonesian Payroll Calculator: THR, BPJS, PPh 21
Example session with this skill installed
How much THR do I owe for Natal 2026 (25 December)? Staff: Budi joined 2019-03-01, basic Rp7.500.000 + fixed allowance Rp1.000.000; Sari joined 2026-06-15, Rp5.200.000 + Rp300.000; Dewi joined 2026-11-02, Rp4.800.000.
- Read your context and instructions
- Compiled the indonesian payroll calculator
THR for Natal 2026
Pay by 2026-12-18 (7 days before 2026-12-25).
| Employee | Joined | Months of service | Wage basis | THR | Note |
|---|---|---|---|---|---|
| Budi | 2019-03-01 | 93 | Rp8.500.000 | Rp8.500.000 | |
| Sari | 2026-06-15 | 6 | Rp5.500.000 | Rp2.750.000 | 6/12 of a month's wage |
| Dewi | 2026-11-02 | 1 | Rp4.800.000 | Rp400.000 | 1/12 of a month's wage |
Total THR: Rp11.650.000
Connects securely to your tools. The creator never sees your data.
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.
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.
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
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today
- Software
Python 3.8+
Permissions
File Scopes
Runs offline. Reads only the CSV named on the command line and writes nothing.
What's inside
Frequently Asked Questions
New in Finance & Accounting
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Finance & Accounting.