The expressions above read these as $const. They are the figures the annual refresh replaces, so they live as data rather than being written into the formulas — which is what makes a year-on-year change a one-line diff instead of an edit to arithmetic.
Constant
Value
vatRate
0.12
zeroRate
0
otherValueNumerator
11
otherValueDenominator
12
smallBusinessThreshold
4800000000
Test vectors (7)
Every case is executed against this model on each build, by the Java engine and independently by a JavaScript one. A mismatch of a single cent fails the build, so the page cannot ship advertising a figure the model no longer produces.
Case 1 — V1 Rp1,000,000 of ordinary goods: base Rp916,666.67, PPN Rp110,000
given amount
1000000
given direction
add
given category
standard
given reverseCharge
no
given annualTurnover
0
expect taxBase
916666.67
expect vatAmount
110000
expect grossAmount
1110000
expect effectiveRate
0.11
Case 2 — V2 Rp1,110,000 gross back to net
given amount
1110000
given direction
remove
given category
standard
given reverseCharge
no
given annualTurnover
0
expect netAmount
1000000
expect vatAmount
110000
Case 3 — V3 a luxury good: 12% on the full price
given amount
1000000
given direction
add
given category
luxury
given reverseCharge
no
given annualTurnover
0
expect taxBase
1000000
expect vatAmount
120000
expect grossAmount
1120000
Case 4 — V4 an export is zero-rated
given amount
1000000
given direction
add
given category
zero
given reverseCharge
no
given annualTurnover
0
expect vatAmount
0
expect grossAmount
1000000
Case 5 — V5 a service from abroad: the seller charges none, the buyer self-assesses Rp110,000
given amount
1000000
given direction
add
given category
standard
given reverseCharge
yes
given annualTurnover
0
expect vatAmount
0
expect grossAmount
1000000
expect selfAssessedVat
110000
Case 6 — V6 exactly Rp4.8 billion is still a small business (“tidak lebih dari”)
given amount
100
given direction
add
given category
standard
given reverseCharge
no
given annualTurnover
4800000000
expect mustRegister
false
Case 7 — V7 above Rp4.8 billion: must register as a PKP
The whole model as JSON — inputs, outputs, formulas, vectors and sources in one re-runnable document.
This model is published under CC BY 4.0: use it, adapt it, build on it, with attribution. The licence covers the model — the expression of each rule and the arrangement of the catalog. The rates and thresholds are law, and nobody licenses those; the sources above are where they come from.