How the Argentina monotributo calculator is verified

Inputs

InputFieldType
Annual gross revenue (ARS)annualRevenuenumber

The formula

Each derived value below is computed by the Valem engine from the expression shown, in this order. Nothing else runs — there is no hidden code path.

Derived valueFieldFormula (JSONata)
Monotributo / monthmonthlyCuotaannualRevenue <= $const.a ? $const.cuotaA : (annualRevenue <= $const.b ? $const.cuotaB : (annualRevenue <= $const.c ? $const.cuotaC : (annualRevenue <= $const.d ? $const.cuotaD : (annualRevenue <= $const.e ? $const.cuotaE : (annualRevenue <= $const.f ? $const.cuotaF : (annualRevenue <= $const.g ? $const.cuotaG : (annualRevenue <= $const.h ? $const.cuotaH : (annualRevenue <= $const.i ? $const.cuotaI : (annualRevenue <= $const.j ? $const.cuotaJ : $const.cuotaK)))))))))
Monotributo / yearannualCuota$round(monthlyCuota * 12, 2)
Net income / yearnetIncome$round($max([0, annualRevenue - annualCuota]), 2)

Rates and thresholds

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.

ConstantValue
a12009410
b17595182
c24670494
d30628651
e36028231
f45151659
g53995798
h81924660
i91699761
j105012519
cuotaA49527.18
cuotaB56379
cuotaC66020
cuotaD84614
cuotaE119811
cuotaF150784
cuotaG230612
cuotaH522706
cuotaI963747
cuotaJ1167299
cuotaK1614446.02

Test vectors (3)

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 — 24,000,000 ARS revenue — category C

given annualRevenue24000000
expect monthlyCuota66020
expect annualCuota792240
expect netIncome23207760

Case 2 — 50,000,000 ARS revenue — category G

given annualRevenue50000000
expect monthlyCuota230612
expect annualCuota2767344
expect netIncome47232656

Case 3 — 120,000,000 ARS revenue — category K, the top of the regime

given annualRevenue120000000
expect monthlyCuota1614446.02
expect annualCuota19373352.24
expect netIncome100626647.76

Sources

Check it yourself — and reuse it

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.

← Back to the Argentina monotributo calculator

Built with Valem — a live, verifiable calculator you can fork and embed.