{
  "$comment": "Machine-readable companion to https://valem.run/calculators/switzerland/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/switzerland/car-tax",
  "dataUrl": "https://valem.run/calculators/switzerland/car-tax.json",
  "license": {
    "name": "CC BY 4.0",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "attribution": "Switzerland verkehrsabgabe model by Valem (https://valem.run/calculators/switzerland/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/switzerland/car-tax/verify",
  "country": "switzerland",
  "countryName": "Switzerland",
  "formula": "car-tax",
  "formulaName": "Verkehrsabgabe",
  "title": "Verkehrsabgabe — Switzerland car tax",
  "answer": "Switzerland's cantonal circulation tax varies by canton; Zurich charges by engine displacement.",
  "lang": "en",
  "currency": "CHF",
  "taxYear": "2025",
  "verification": {
    "claim": "shape-only",
    "statement": "The rates in this model are illustrative. Its 2 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": 2,
    "ratesAreIllustrative": true,
    "sourcesCheckedOn": "2026-08-02"
  },
  "sources": [
    {
      "label": "Kanton ZH Verkehrsabgaben",
      "url": "https://www.zh.ch",
      "checked": "2026-08-02"
    }
  ],
  "terminalOutput": "tax",
  "inputs": [
    {
      "name": "cc",
      "type": "number",
      "label": "Hubraum (cm³)",
      "minimum": 0
    }
  ],
  "outputs": [
    {
      "name": "tax",
      "type": "number",
      "label": "Jährliche Abgabe (ZH)",
      "format": "currency",
      "formula": "($c := cc; $round($c <= 1200 ? 190 : $c <= 2000 ? 355 : $c <= 3000 ? 550 : 800, 2))"
    }
  ],
  "testCases": [
    {
      "description": "C1 ZH 1,984 cm3",
      "given": {
        "cc": 1984
      },
      "expect": {
        "tax": 355
      }
    },
    {
      "description": "C2 ZH 1,197 cm3",
      "given": {
        "cc": 1197
      },
      "expect": {
        "tax": 190
      }
    }
  ],
  "spec": {
    "id": "car-tax-switzerland",
    "version": "1.0.0",
    "schema": {
      "type": "object",
      "properties": {
        "cc": {
          "type": "number",
          "minimum": 0
        },
        "tax": {
          "type": "number",
          "readOnly": true
        }
      }
    },
    "constants": {},
    "defaultValues": [
      {
        "path": "$",
        "expr": "{ 'cc': 1984 }"
      }
    ],
    "derivations": [
      {
        "path": "$.tax",
        "expr": "($c := cc; $round($c <= 1200 ? 190 : $c <= 2000 ? 355 : $c <= 3000 ? 550 : 800, 2))"
      }
    ],
    "constraints": [],
    "metaDerivations": [],
    "viewDefinition": {
      "renderer": "builtin",
      "defaultView": "main",
      "views": [
        {
          "id": "main",
          "label": "Verkehrsabgabe",
          "layout": "vertical",
          "components": [
            {
              "id": "illustrativeNotice",
              "type": "alert",
              "variant": "warning",
              "label": "Illustrative Ansätze — kein offizieller Tarif",
              "text": "'Die Verkehrsabgabe ist kantonal: Zürich rechnet nach Hubraum, Bern nach Gewicht, Waadt nach Gewicht und CO2, Genf nach einer eigenen Formel — 26 Kantone, 26 Systeme. Die Werte hier zeigen die Grössenordnung, nicht den Tarif Ihres Kantons. Rechnen Sie beim Strassenverkehrsamt Ihres Kantons nach.'"
            },
            {
              "id": "cc",
              "type": "numericField",
              "label": "Hubraum (cm³)",
              "bind": "$.cc"
            },
            {
              "id": "tiles",
              "type": "group",
              "layout": "horizontal",
              "components": [
                {
                  "id": "taxTile",
                  "type": "statTile",
                  "label": "Jährliche Abgabe (ZH)",
                  "bind": "$.tax",
                  "format": "currency",
                  "currency": "CHF"
                }
              ]
            },
            {
              "id": "note",
              "type": "staticText",
              "text": "'Schweiz: kantonale Verkehrsabgabe — Basis je Kanton verschieden (ZH nach Hubraum, BE nach Gewicht, VD Gewicht+CO2, GE Steuer-PS). Illustrative ZH-Tabelle. Schätzung, keine Steuerberatung.'"
            },
            {
              "id": "sources",
              "type": "sourceList",
              "label": "Quellen",
              "items": [
                {
                  "label": "Kanton ZH Verkehrsabgaben",
                  "url": "https://www.zh.ch",
                  "date": "2026-08-02"
                }
              ]
            }
          ]
        }
      ]
    },
    "tests": [
      {
        "description": "C1 ZH 1,984 cm3",
        "given": {
          "$.cc": 1984
        },
        "expect": {
          "$.tax": 355
        }
      },
      {
        "description": "C2 ZH 1,197 cm3",
        "given": {
          "$.cc": 1197
        },
        "expect": {
          "$.tax": 190
        }
      }
    ]
  }
}
