{
  "$comment": "Machine-readable companion to https://valem.run/calculators/israel/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/israel/car-tax",
  "dataUrl": "https://valem.run/calculators/israel/car-tax.json",
  "license": {
    "name": "CC BY 4.0",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "attribution": "Israel אגרת רישוי model by Valem (https://valem.run/calculators/israel/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/israel/car-tax/verify",
  "country": "israel",
  "countryName": "Israel",
  "formula": "car-tax",
  "formulaName": "אגרת רישוי",
  "title": "אגרת רישוי — Israel car licence fee",
  "answer": "Israel's annual vehicle licence fee is a table lookup by the car's price group and age.",
  "lang": "en",
  "currency": "ILS",
  "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": "משרד התחבורה — אגרות רישוי",
      "url": "https://www.gov.il/he/departments/ministry_of_transport",
      "checked": "2026-08-02"
    }
  ],
  "terminalOutput": "fee",
  "inputs": [
    {
      "name": "priceGroup",
      "type": "number",
      "label": "קבוצת מחיר (1-7)",
      "minimum": 1,
      "maximum": 7
    }
  ],
  "outputs": [
    {
      "name": "fee",
      "type": "number",
      "label": "אגרה שנתית",
      "format": "currency",
      "formula": "($g := priceGroup; $round($g <= 1 ? 600 : $g <= 2 ? 1200 : $g <= 3 ? 1800 : $g <= 4 ? 2600 : $g <= 5 ? 3400 : $g <= 6 ? 4000 : 5000, 2))"
    }
  ],
  "testCases": [
    {
      "description": "C1 price group 2",
      "given": {
        "priceGroup": 2
      },
      "expect": {
        "fee": 1200
      }
    },
    {
      "description": "C2 price group 6",
      "given": {
        "priceGroup": 6
      },
      "expect": {
        "fee": 4000
      }
    }
  ],
  "spec": {
    "id": "car-tax-israel",
    "version": "1.0.0",
    "schema": {
      "type": "object",
      "properties": {
        "priceGroup": {
          "type": "number",
          "minimum": 1,
          "maximum": 7
        },
        "fee": {
          "type": "number",
          "readOnly": true
        }
      }
    },
    "constants": {},
    "defaultValues": [
      {
        "path": "$",
        "expr": "{ 'priceGroup': 2 }"
      }
    ],
    "derivations": [
      {
        "path": "$.fee",
        "expr": "($g := priceGroup; $round($g <= 1 ? 600 : $g <= 2 ? 1200 : $g <= 3 ? 1800 : $g <= 4 ? 2600 : $g <= 5 ? 3400 : $g <= 6 ? 4000 : 5000, 2))"
      }
    ],
    "constraints": [],
    "metaDerivations": [],
    "viewDefinition": {
      "renderer": "builtin",
      "defaultView": "main",
      "views": [
        {
          "id": "main",
          "label": "אגרת רישוי",
          "layout": "vertical",
          "components": [
            {
              "id": "illustrativeNotice",
              "type": "alert",
              "variant": "warning",
              "label": "טבלה להמחשה — אינה התעריף הרשמי",
              "text": "'אגרת הרישוי השנתית נקבעת לפי קבוצת מחיר של הרכב ולפי גילו, על פי טבלה שמפרסם משרד התחבורה. הסכומים כאן ממחישים את צורת החישוב ולא את התעריף בפועל. בדקו באתר משרד התחבורה את האגרה לרכב שלכם.'"
            },
            {
              "id": "group",
              "type": "numericField",
              "label": "קבוצת מחיר (1-7)",
              "bind": "$.priceGroup"
            },
            {
              "id": "tiles",
              "type": "group",
              "layout": "horizontal",
              "components": [
                {
                  "id": "feeTile",
                  "type": "statTile",
                  "label": "אגרה שנתית",
                  "bind": "$.fee",
                  "format": "currency",
                  "currency": "ILS"
                }
              ]
            },
            {
              "id": "note",
              "type": "staticText",
              "text": "'ישראל: אגרת רישוי שנתית לפי קבוצת מחיר הרכב (1-7) וגיל. טבלה להמחשה. הערכה, לא ייעוץ.'"
            },
            {
              "id": "sources",
              "type": "sourceList",
              "label": "מקורות",
              "items": [
                {
                  "label": "משרד התחבורה — אגרות רישוי",
                  "url": "https://www.gov.il/he/departments/ministry_of_transport",
                  "date": "2026-08-02"
                }
              ]
            }
          ]
        }
      ]
    },
    "tests": [
      {
        "description": "C1 price group 2",
        "given": {
          "$.priceGroup": 2
        },
        "expect": {
          "$.fee": 1200
        }
      },
      {
        "description": "C2 price group 6",
        "given": {
          "$.priceGroup": 6
        },
        "expect": {
          "$.fee": 4000
        }
      }
    ]
  }
}
