{
  "$comment": "Machine-readable companion to https://valem.run/calculators/romania/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/romania/car-tax",
  "dataUrl": "https://valem.run/calculators/romania/car-tax.json",
  "license": {
    "name": "CC BY 4.0",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "attribution": "Romania impozit auto model by Valem (https://valem.run/calculators/romania/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/romania/car-tax/verify",
  "country": "romania",
  "countryName": "Romania",
  "formula": "car-tax",
  "formulaName": "Impozit auto",
  "title": "Calcul Impozit Auto — Romania car tax",
  "answer": "Romania's local car tax is a per-200-cm3 amount that steps up with engine size, so bigger engines pay steeply more.",
  "lang": "en",
  "currency": "RON",
  "taxYear": "2025",
  "verification": {
    "claim": "internal-consistency",
    "statement": "The Valem engine reproduces this model's stated formula through 2 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": 2,
    "ratesAreIllustrative": false,
    "sourcesCheckedOn": "2026-08-02"
  },
  "sources": [
    {
      "label": "ANAF",
      "url": "https://www.anaf.ro",
      "checked": "2026-08-02"
    },
    {
      "label": "ghiseul.ro",
      "url": "https://www.ghiseul.ro",
      "checked": "2026-08-02"
    }
  ],
  "terminalOutput": "tax",
  "inputs": [
    {
      "name": "cc",
      "type": "number",
      "label": "Capacitate cilindrică (cm³)",
      "minimum": 0
    }
  ],
  "outputs": [
    {
      "name": "units",
      "type": "number",
      "label": "Fracțiuni de 200 cm³",
      "formula": "$ceil(cc / 200)"
    },
    {
      "name": "rate",
      "type": "number",
      "label": "Rată (RON / fracțiune)",
      "formula": "($c := cc; $c <= 1600 ? 8 : $c <= 2000 ? 21 : $c <= 2600 ? 85 : $c <= 3000 ? 171 : 345)"
    },
    {
      "name": "tax",
      "type": "number",
      "label": "Impozit anual",
      "format": "currency",
      "formula": "$round(units * rate, 2)"
    }
  ],
  "testCases": [
    {
      "description": "C1 1,400 cm3",
      "given": {
        "cc": 1400
      },
      "expect": {
        "units": 7,
        "rate": 8,
        "tax": 56
      }
    },
    {
      "description": "C2 2,500 cm3",
      "given": {
        "cc": 2500
      },
      "expect": {
        "units": 13,
        "rate": 85,
        "tax": 1105
      }
    }
  ],
  "spec": {
    "id": "car-tax-romania",
    "version": "1.0.0",
    "schema": {
      "type": "object",
      "properties": {
        "cc": {
          "type": "number",
          "minimum": 0
        },
        "units": {
          "type": "number",
          "readOnly": true
        },
        "rate": {
          "type": "number",
          "readOnly": true
        },
        "tax": {
          "type": "number",
          "readOnly": true
        }
      }
    },
    "constants": {},
    "defaultValues": [
      {
        "path": "$",
        "expr": "{ 'cc': 1400 }"
      }
    ],
    "derivations": [
      {
        "path": "$.units",
        "expr": "$ceil(cc / 200)"
      },
      {
        "path": "$.rate",
        "expr": "($c := cc; $c <= 1600 ? 8 : $c <= 2000 ? 21 : $c <= 2600 ? 85 : $c <= 3000 ? 171 : 345)"
      },
      {
        "path": "$.tax",
        "expr": "$round(units * rate, 2)"
      }
    ],
    "constraints": [],
    "metaDerivations": [],
    "viewDefinition": {
      "renderer": "builtin",
      "defaultView": "main",
      "views": [
        {
          "id": "main",
          "label": "Impozit auto",
          "layout": "vertical",
          "components": [
            {
              "id": "cc",
              "type": "numericField",
              "label": "Capacitate cilindrică (cm³)",
              "bind": "$.cc"
            },
            {
              "id": "tiles",
              "type": "group",
              "layout": "horizontal",
              "components": [
                {
                  "id": "taxTile",
                  "type": "statTile",
                  "label": "Impozit anual",
                  "bind": "$.tax",
                  "format": "currency",
                  "currency": "RON"
                }
              ]
            },
            {
              "id": "breakdown",
              "type": "keyValueList",
              "label": "Calcul",
              "items": [
                {
                  "label": "Fracțiuni de 200 cm³",
                  "bind": "$.units"
                },
                {
                  "label": "Rată (RON / fracțiune)",
                  "bind": "$.rate"
                },
                {
                  "label": "Impozit",
                  "bind": "$.tax",
                  "format": "currency",
                  "currency": "RON"
                }
              ]
            },
            {
              "id": "note",
              "type": "staticText",
              "text": "'România: impozit auto local pe fiecare fracțiune de 200 cm³ — 8 RON (≤1600), 21 (1601-2000), 85 (2001-2600), 171 (2601-3000), 345 (>3000), indexat local. Estimare, nu consultanță fiscală.'"
            },
            {
              "id": "sources",
              "type": "sourceList",
              "label": "Surse",
              "items": [
                {
                  "label": "ANAF",
                  "url": "https://www.anaf.ro",
                  "date": "2026-08-02"
                },
                {
                  "label": "ghiseul.ro",
                  "url": "https://www.ghiseul.ro",
                  "date": "2026-08-02"
                }
              ]
            }
          ]
        }
      ]
    },
    "tests": [
      {
        "description": "C1 1,400 cm3",
        "given": {
          "$.cc": 1400
        },
        "expect": {
          "$.units": 7,
          "$.rate": 8,
          "$.tax": 56
        }
      },
      {
        "description": "C2 2,500 cm3",
        "given": {
          "$.cc": 2500
        },
        "expect": {
          "$.units": 13,
          "$.rate": 85,
          "$.tax": 1105
        }
      }
    ]
  }
}
