How the Greece ελεύθερος επαγγελματίας calculator is verified

Inputs

InputFieldType
Annual profit after expenses (EUR)annualProfitnumber

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)
EFKA (1st category, pension)efkaContributions$round($const.efkaMonthly * 12, 2)
Taxable IncometaxableIncome$round($max([0, annualProfit - efkaContributions]), 2)
Income taxincomeTax($t := taxableIncome; $round($const.r1 * $min([$t, $const.b1]) + $const.r2 * $max([0, $min([$t, $const.b2]) - $const.b1]) + $const.r3 * $max([0, $min([$t, $const.b3]) - $const.b2]) + $const.r4 * $max([0, $min([$t, $const.b4]) - $const.b3]) + $const.r5 * $max([0, $min([$t, $const.b5]) - $const.b4]) + $const.r6 * $max([0, $t - $const.b5]), 2))
Net income / yearnetIncome$round($max([0, annualProfit - efkaContributions - incomeTax]), 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
efkaMonthly185.09
b110000
b220000
b330000
b440000
b560000
r10.09
r20.2
r30.26
r40.34
r50.39
r60.44

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 — 30,000 EUR profit — a typical full-time freelancer

given annualProfit30000
expect efkaContributions2221.08
expect taxableIncome27778.92
expect incomeTax4922.52
expect netIncome22856.4

Case 2 — 12,000 EUR — part-time, taxed from the first euro

given annualProfit12000
expect efkaContributions2221.08
expect taxableIncome9778.92
expect incomeTax880.1
expect netIncome8898.82

Case 3 — 80,000 EUR — into the 44% band

given annualProfit80000
expect efkaContributions2221.08
expect taxableIncome77778.92
expect incomeTax24522.72
expect netIncome53256.2

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 Greece ελεύθερος επαγγελματίας calculator

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