{
  "$comment": "Machine-readable companion to https://valem.run/calculators/slovenia/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/slovenia/car-tax",
  "dataUrl": "https://valem.run/calculators/slovenia/car-tax.json",
  "license": {
    "name": "CC BY 4.0",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "attribution": "Slovenia letno nadomestilo model by Valem (https://valem.run/calculators/slovenia/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/slovenia/car-tax/verify",
  "country": "slovenia",
  "countryName": "Slovenia",
  "formula": "car-tax",
  "formulaName": "Letno nadomestilo",
  "title": "Letno Nadomestilo — Slovenia car tax",
  "answer": "Slovenia's annual road-use fee for cars is based on engine displacement bands.",
  "lang": "en",
  "currency": "EUR",
  "taxYear": "2026",
  "verification": {
    "claim": "internal-consistency",
    "statement": "The Valem engine reproduces this model's stated formula through 3 self-test cases (below, and re-runnable against the spec). That asserts internal consistency, NOT that the formula matches current law — the cited sources are the evidence for that, and carry the date each was last checked.",
    "selfTestCases": 3,
    "ratesAreIllustrative": false,
    "sourcesCheckedOn": "2026-08-02"
  },
  "sources": [
    {
      "label": "eUprava",
      "url": "https://e-uprava.gov.si",
      "checked": "2026-08-05"
    }
  ],
  "terminalOutput": "tax",
  "inputs": [
    {
      "name": "cc",
      "type": "number",
      "label": "Prostornina motorja (cm³)",
      "minimum": 0
    }
  ],
  "outputs": [
    {
      "name": "tax",
      "type": "number",
      "label": "Letno nadomestilo",
      "format": "currency",
      "formula": "($c := cc; $round($c <= 1350 ? 62 : $c <= 1800 ? 96 : $c <= 2500 ? 153 : $c <= 3000 ? 282 : $c <= 4000 ? 452 : 565, 2))"
    }
  ],
  "testCases": [
    {
      "description": "C1 1.598 ccm — razred do 1.800 ccm",
      "given": {
        "cc": 1598
      },
      "expect": {
        "tax": 96
      }
    },
    {
      "description": "C2 2.000 ccm — razred do 2.500 ccm",
      "given": {
        "cc": 2000
      },
      "expect": {
        "tax": 153
      }
    },
    {
      "description": "C3 4.200 ccm — najvišji razred",
      "given": {
        "cc": 4200
      },
      "expect": {
        "tax": 565
      }
    }
  ],
  "spec": {
    "id": "car-tax-slovenia",
    "version": "1.0.0",
    "schema": {
      "type": "object",
      "properties": {
        "cc": {
          "type": "number",
          "minimum": 0
        },
        "tax": {
          "type": "number",
          "readOnly": true
        }
      }
    },
    "constants": {},
    "defaultValues": [
      {
        "path": "$",
        "expr": "{ 'cc': 1398 }"
      }
    ],
    "derivations": [
      {
        "path": "$.tax",
        "expr": "($c := cc; $round($c <= 1350 ? 62 : $c <= 1800 ? 96 : $c <= 2500 ? 153 : $c <= 3000 ? 282 : $c <= 4000 ? 452 : 565, 2))"
      }
    ],
    "constraints": [],
    "metaDerivations": [],
    "viewDefinition": {
      "renderer": "builtin",
      "defaultView": "main",
      "views": [
        {
          "id": "main",
          "label": "Letno nadomestilo",
          "layout": "vertical",
          "components": [
            {
              "id": "cc",
              "type": "numericField",
              "label": "Prostornina motorja (cm³)",
              "bind": "$.cc"
            },
            {
              "id": "tiles",
              "type": "group",
              "layout": "horizontal",
              "components": [
                {
                  "id": "taxTile",
                  "type": "statTile",
                  "label": "Letno nadomestilo",
                  "bind": "$.tax",
                  "format": "currency",
                  "currency": "EUR"
                }
              ]
            },
            {
              "id": "note",
              "type": "staticText",
              "text": "'Slovenija 2026: letna dajatev za uporabo vozil v cestnem prometu po zakonski lestvici glede na prostornino motorja — 62 EUR do 1.350 ccm, 96 do 1.800, 153 do 2.500, 282 do 3.000, 452 do 4.000 in 565 EUR nad 4.000 ccm (z DDV). Za električna vozila se od leta 2025 dajatev določa po masi vozila in ne po prostornini. Ocena, ne davčni nasvet.'"
            },
            {
              "id": "sources",
              "type": "sourceList",
              "label": "Viri",
              "items": [
                {
                  "label": "eUprava",
                  "url": "https://e-uprava.gov.si",
                  "date": "2026-08-05"
                }
              ]
            }
          ]
        }
      ]
    },
    "tests": [
      {
        "description": "C1 1.598 ccm — razred do 1.800 ccm",
        "given": {
          "$.cc": 1598
        },
        "expect": {
          "$.tax": 96
        }
      },
      {
        "description": "C2 2.000 ccm — razred do 2.500 ccm",
        "given": {
          "$.cc": 2000
        },
        "expect": {
          "$.tax": 153
        }
      },
      {
        "description": "C3 4.200 ccm — najvišji razred",
        "given": {
          "$.cc": 4200
        },
        "expect": {
          "$.tax": 565
        }
      }
    ]
  }
}
