{
  "$comment": "Machine-readable companion to https://valem.run/calculators/croatia/car-tax. Formula, inputs, outputs, engine-verified test vectors, cited sources and the re-runnable Valem ModelSpec behind the page.",
  "url": "https://valem.run/calculators/croatia/car-tax",
  "dataUrl": "https://valem.run/calculators/croatia/car-tax.json",
  "license": {
    "name": "CC BY 4.0",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "attribution": "Croatia godišnja naknada model by Valem (https://valem.run/calculators/croatia/car-tax), CC BY 4.0.",
    "note": "Covers the model — the expression of each rule and the arrangement of the catalog. The rates and thresholds themselves are law and are not licensed by anyone; the cited sources are where they come from."
  },
  "verificationUrl": "https://valem.run/calculators/croatia/car-tax/verify",
  "country": "croatia",
  "countryName": "Croatia",
  "formula": "car-tax",
  "formulaName": "Godišnja naknada",
  "title": "Godišnja Naknada — Croatia car fee",
  "answer": "Croatia's annual road fee, paid at the technical inspection, is based on the engine displacement of the car's age.",
  "lang": "en",
  "currency": "EUR",
  "taxYear": "2026",
  "verification": {
    "claim": "shape-only",
    "statement": "The rates in this model are illustrative. Its 3 self-test cases confirm the engine reproduces the shape of the charge, but the schedule is not the official one, so the amount will not match a real bill. The cited sources name the document that would replace it.",
    "selfTestCases": 3,
    "ratesAreIllustrative": true,
    "sourcesCheckedOn": "2026-08-02"
  },
  "sources": [
    {
      "label": "CVH tehnički pregled",
      "url": "https://www.cvh.hr",
      "checked": "2026-08-05"
    }
  ],
  "terminalOutput": "tax",
  "inputs": [
    {
      "name": "cc",
      "type": "number",
      "label": "Obujam motora (ccm)",
      "minimum": 0
    }
  ],
  "outputs": [
    {
      "name": "sourced",
      "type": "number",
      "formula": "cc <= 2000 ? 1 : 0"
    },
    {
      "name": "tax",
      "type": "number",
      "label": "Godišnja naknada",
      "format": "currency",
      "formula": "($c := cc; $round($c <= 1000 ? $const.do1000 : $c <= 1600 ? $const.do1600 : $c <= 2000 ? $const.do2000 : $c <= 2500 ? 140 : $c <= 3000 ? 190 : 260, 2))"
    }
  ],
  "testCases": [
    {
      "description": "C1 1.598 ccm — službeni iznos za razred do 1.600 ccm",
      "given": {
        "cc": 1598
      },
      "expect": {
        "sourced": 1,
        "tax": 79.6
      }
    },
    {
      "description": "C2 998 ccm — najniži službeni razred",
      "given": {
        "cc": 998
      },
      "expect": {
        "sourced": 1,
        "tax": 38.4
      }
    },
    {
      "description": "C3 2.900 ccm — iznad službeno objavljenih razreda, procjena",
      "given": {
        "cc": 2900
      },
      "expect": {
        "sourced": 0,
        "tax": 190
      }
    }
  ],
  "spec": {
    "id": "car-tax-croatia",
    "version": "1.0.0",
    "schema": {
      "type": "object",
      "properties": {
        "cc": {
          "type": "number",
          "minimum": 0
        },
        "sourced": {
          "type": "number",
          "readOnly": true
        },
        "tax": {
          "type": "number",
          "readOnly": true
        }
      }
    },
    "constants": {
      "do1000": 38.4,
      "do1600": 79.6,
      "do2000": 95.6
    },
    "defaultValues": [
      {
        "path": "$",
        "expr": "{ 'cc': 1598 }"
      }
    ],
    "derivations": [
      {
        "path": "$.sourced",
        "expr": "cc <= 2000 ? 1 : 0"
      },
      {
        "path": "$.tax",
        "expr": "($c := cc; $round($c <= 1000 ? $const.do1000 : $c <= 1600 ? $const.do1600 : $c <= 2000 ? $const.do2000 : $c <= 2500 ? 140 : $c <= 3000 ? 190 : 260, 2))"
      }
    ],
    "constraints": [],
    "metaDerivations": [],
    "viewDefinition": {
      "renderer": "builtin",
      "defaultView": "main",
      "views": [
        {
          "id": "main",
          "label": "Godišnja naknada",
          "layout": "vertical",
          "components": [
            {
              "id": "illustrativeNotice",
              "type": "alert",
              "variant": "warning",
              "label": "Djelomično službene stope — iznad 2.000 ccm su ilustrativne",
              "text": "'Godišnja naknada za uporabu cesta plaća se pri tehničkom pregledu i određuje se prema obujmu motora. Za 2026. naknada je porasla oko 60 posto — osnovica s 28,50 na 40 EUR — a iznosi za najčešće razrede su službeni: 38,40 EUR do 1.000 ccm, 79,60 EUR do 1.600 ccm i 95,60 EUR do 2.000 ccm. Iznosi iznad 2.000 ccm ovdje su procijenjeni, jer službena ljestvica za te razrede nije bila dostupna. Provjerite na stanici za tehnički pregled.'"
            },
            {
              "id": "cc",
              "type": "numericField",
              "label": "Obujam motora (ccm)",
              "bind": "$.cc"
            },
            {
              "id": "tiles",
              "type": "group",
              "layout": "horizontal",
              "components": [
                {
                  "id": "taxTile",
                  "type": "statTile",
                  "label": "Godišnja naknada",
                  "bind": "$.tax",
                  "format": "currency",
                  "currency": "EUR"
                }
              ]
            },
            {
              "id": "note",
              "type": "staticText",
              "text": "'Hrvatska 2026: godišnja naknada za uporabu cesta prema obujmu motora, naplaćena pri tehničkom pregledu. Osnovica je s 2026. podignuta s 28,50 na 40 EUR, prvi put od 2003., što je naknadu poskupjelo oko 60 posto. Procjena, nije porezni savjet.'"
            },
            {
              "id": "sources",
              "type": "sourceList",
              "label": "Izvori",
              "items": [
                {
                  "label": "CVH tehnički pregled",
                  "url": "https://www.cvh.hr",
                  "date": "2026-08-05"
                }
              ]
            }
          ]
        }
      ]
    },
    "tests": [
      {
        "description": "C1 1.598 ccm — službeni iznos za razred do 1.600 ccm",
        "given": {
          "$.cc": 1598
        },
        "expect": {
          "$.sourced": 1,
          "$.tax": 79.6
        }
      },
      {
        "description": "C2 998 ccm — najniži službeni razred",
        "given": {
          "$.cc": 998
        },
        "expect": {
          "$.sourced": 1,
          "$.tax": 38.4
        }
      },
      {
        "description": "C3 2.900 ccm — iznad službeno objavljenih razreda, procjena",
        "given": {
          "$.cc": 2900
        },
        "expect": {
          "$.sourced": 0,
          "$.tax": 190
        }
      }
    ]
  }
}
