{
  "$comment": "Machine-readable companion to https://valem.run/calculators/norway/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/norway/car-tax",
  "dataUrl": "https://valem.run/calculators/norway/car-tax.json",
  "license": {
    "name": "CC BY 4.0",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "attribution": "Norway trafikkforsikringsavgift model by Valem (https://valem.run/calculators/norway/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/norway/car-tax/verify",
  "country": "norway",
  "countryName": "Norway",
  "formula": "car-tax",
  "formulaName": "Trafikkforsikringsavgift",
  "title": "Trafikkforsikringsavgift — Norway car tax",
  "answer": "Norway replaced its annual road tax with the traffic-insurance fee, collected through your car insurer.",
  "lang": "en",
  "currency": "NOK",
  "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": "Skatteetaten",
      "url": "https://www.skatteetaten.no",
      "checked": "2026-08-04"
    },
    {
      "label": "NAF — avgifter og kostnader for bil 2026",
      "url": "https://www.naf.no/politikk-og-samfunn/privatokonomi/avgifter-og-kostnader-for-bil-2026",
      "checked": "2026-08-04"
    }
  ],
  "terminalOutput": "tax",
  "inputs": [
    {
      "name": "fuel",
      "type": "number",
      "label": "Drivstoff (0 = bensin/diesel med filter, 1 = diesel uten filter, 2 = elbil)",
      "minimum": 0,
      "maximum": 2
    }
  ],
  "outputs": [
    {
      "name": "dailyRate",
      "type": "number",
      "label": "Dagsats",
      "format": "currency",
      "formula": "($f := fuel; $f >= 2 ? $const.evDaily : $f >= 1 ? $const.dieselNoFilterDaily : $const.petrolDaily)"
    },
    {
      "name": "tax",
      "type": "number",
      "label": "Årlig avgift",
      "format": "currency",
      "formula": "$round(dailyRate * $const.days, 2)"
    }
  ],
  "testCases": [
    {
      "description": "C1 petrol or filtered diesel",
      "given": {
        "fuel": 0
      },
      "expect": {
        "dailyRate": 6.52,
        "tax": 2379.8
      }
    },
    {
      "description": "C2 electric car — now the highest rate",
      "given": {
        "fuel": 2
      },
      "expect": {
        "dailyRate": 9.16,
        "tax": 3343.4
      }
    },
    {
      "description": "C3 diesel without a factory particle filter",
      "given": {
        "fuel": 1
      },
      "expect": {
        "dailyRate": 8.1,
        "tax": 2956.5
      }
    }
  ],
  "spec": {
    "id": "car-tax-norway",
    "version": "1.0.0",
    "schema": {
      "type": "object",
      "properties": {
        "fuel": {
          "type": "number",
          "minimum": 0,
          "maximum": 2
        },
        "dailyRate": {
          "type": "number",
          "readOnly": true
        },
        "tax": {
          "type": "number",
          "readOnly": true
        }
      }
    },
    "constants": {
      "petrolDaily": 6.52,
      "dieselNoFilterDaily": 8.1,
      "evDaily": 9.16,
      "days": 365
    },
    "defaultValues": [
      {
        "path": "$",
        "expr": "{ 'fuel': 0 }"
      }
    ],
    "derivations": [
      {
        "path": "$.dailyRate",
        "expr": "($f := fuel; $f >= 2 ? $const.evDaily : $f >= 1 ? $const.dieselNoFilterDaily : $const.petrolDaily)"
      },
      {
        "path": "$.tax",
        "expr": "$round(dailyRate * $const.days, 2)"
      }
    ],
    "constraints": [],
    "metaDerivations": [],
    "viewDefinition": {
      "renderer": "builtin",
      "defaultView": "main",
      "views": [
        {
          "id": "main",
          "label": "Trafikkforsikringsavgift",
          "layout": "vertical",
          "components": [
            {
              "id": "fuel",
              "type": "numericField",
              "label": "Drivstoff (0 = bensin/diesel med filter, 1 = diesel uten filter, 2 = elbil)",
              "bind": "$.fuel"
            },
            {
              "id": "tiles",
              "type": "group",
              "layout": "horizontal",
              "components": [
                {
                  "id": "taxTile",
                  "type": "statTile",
                  "label": "Årlig avgift",
                  "bind": "$.tax",
                  "format": "currency",
                  "currency": "NOK"
                },
                {
                  "id": "dayTile",
                  "type": "statTile",
                  "label": "Dagsats",
                  "bind": "$.dailyRate",
                  "format": "currency",
                  "currency": "NOK"
                }
              ]
            },
            {
              "id": "note",
              "type": "staticText",
              "text": "'Norge 2026: den årlige veiavgiften er erstattet av trafikkforsikringsavgiften, en dagsats som kreves inn via forsikringen. Fra 1. mars 2026: elbil 9,16 kr/døgn, bensin og diesel med fabrikkmontert partikkelfilter 6,52 kr/døgn, diesel uten filter 8,10 kr/døgn — elbiler betaler altså nå MEST. Lette elektriske varebiler under 1 785 kg er fritatt. Anslag, ikke skatterådgivning.'"
            },
            {
              "id": "sources",
              "type": "sourceList",
              "label": "Kilder",
              "items": [
                {
                  "label": "Skatteetaten",
                  "url": "https://www.skatteetaten.no",
                  "date": "2026-08-04"
                },
                {
                  "label": "NAF — avgifter og kostnader for bil 2026",
                  "url": "https://www.naf.no/politikk-og-samfunn/privatokonomi/avgifter-og-kostnader-for-bil-2026",
                  "date": "2026-08-04"
                }
              ]
            }
          ]
        }
      ]
    },
    "tests": [
      {
        "description": "C1 petrol or filtered diesel",
        "given": {
          "$.fuel": 0
        },
        "expect": {
          "$.dailyRate": 6.52,
          "$.tax": 2379.8
        }
      },
      {
        "description": "C2 electric car — now the highest rate",
        "given": {
          "$.fuel": 2
        },
        "expect": {
          "$.dailyRate": 9.16,
          "$.tax": 3343.4
        }
      },
      {
        "description": "C3 diesel without a factory particle filter",
        "given": {
          "$.fuel": 1
        },
        "expect": {
          "$.dailyRate": 8.1,
          "$.tax": 2956.5
        }
      }
    ]
  }
}
