{
  "$comment": "Machine-readable companion to https://valem.run/calculators/lithuania/net-salary. Formula, inputs, outputs, engine-verified test vectors, cited sources and the re-runnable Valem ModelSpec behind the page.",
  "url": "https://valem.run/calculators/lithuania/net-salary",
  "dataUrl": "https://valem.run/calculators/lithuania/net-salary.json",
  "license": {
    "name": "CC BY 4.0",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "attribution": "Lithuania atlyginimas į rankas model by Valem (https://valem.run/calculators/lithuania/net-salary), 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/lithuania/net-salary/verify",
  "country": "lithuania",
  "countryName": "Lithuania",
  "formula": "net-salary",
  "formulaName": "Atlyginimas į rankas",
  "title": "Atlyginimo Skaičiuoklė — Lithuania net salary",
  "answer": "Your Lithuanian take-home is gross minus 19.5% Sodra contributions and 20% income tax on gross above the tax-free amount.",
  "lang": "en",
  "currency": "EUR",
  "taxYear": "2026",
  "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": "VMI",
      "url": "https://www.vmi.lt",
      "checked": "2026-08-02"
    },
    {
      "label": "Sodra",
      "url": "https://www.sodra.lt",
      "checked": "2026-08-02"
    }
  ],
  "terminalOutput": "netMonthly",
  "inputs": [
    {
      "name": "grossMonthly",
      "type": "number",
      "label": "Bruto atlyginimas / mėn (EUR)",
      "format": "currency",
      "minimum": 0
    }
  ],
  "outputs": [
    {
      "name": "sodra",
      "type": "number",
      "label": "Sodra (19,5%)",
      "format": "currency",
      "formula": "$round(grossMonthly * $const.sodraRate, 2)"
    },
    {
      "name": "npd",
      "type": "number",
      "label": "NPD",
      "format": "currency",
      "formula": "($w := grossMonthly; $n := $w <= $const.mma ? $const.npdMax : $const.npdMax - $const.npdTaper * ($w - $const.mma); $round($n > 0 ? $n : 0, 2))"
    },
    {
      "name": "taxBase",
      "type": "number",
      "formula": "($b := grossMonthly - npd; $round($b > 0 ? $b : 0, 2))"
    },
    {
      "name": "pit",
      "type": "number",
      "label": "GPM (20%)",
      "format": "currency",
      "formula": "$round(taxBase * $const.pitRate, 2)"
    },
    {
      "name": "netMonthly",
      "type": "number",
      "label": "Į rankas / mėn",
      "format": "currency",
      "formula": "$round(grossMonthly - sodra - pit, 2)"
    }
  ],
  "testCases": [
    {
      "description": "S1 1,500 EUR",
      "given": {
        "grossMonthly": 1500
      },
      "expect": {
        "sodra": 292.5,
        "npd": 576.97,
        "pit": 184.61,
        "netMonthly": 1022.89
      }
    },
    {
      "description": "S3 5,000 EUR — NPD phased to zero",
      "given": {
        "grossMonthly": 5000
      },
      "expect": {
        "npd": 0,
        "pit": 1000,
        "netMonthly": 3025
      }
    }
  ],
  "spec": {
    "id": "net-salary-lithuania",
    "version": "1.0.0",
    "schema": {
      "type": "object",
      "properties": {
        "grossMonthly": {
          "type": "number",
          "minimum": 0
        },
        "sodra": {
          "type": "number",
          "readOnly": true
        },
        "npd": {
          "type": "number",
          "readOnly": true
        },
        "taxBase": {
          "type": "number",
          "readOnly": true
        },
        "pit": {
          "type": "number",
          "readOnly": true
        },
        "netMonthly": {
          "type": "number",
          "readOnly": true
        }
      }
    },
    "constants": {
      "sodraRate": 0.195,
      "pitRate": 0.2,
      "mma": 1153,
      "npdMax": 747,
      "npdTaper": 0.49
    },
    "defaultValues": [
      {
        "path": "$",
        "expr": "{ 'grossMonthly': 1500 }"
      }
    ],
    "derivations": [
      {
        "path": "$.sodra",
        "expr": "$round(grossMonthly * $const.sodraRate, 2)"
      },
      {
        "path": "$.npd",
        "expr": "($w := grossMonthly; $n := $w <= $const.mma ? $const.npdMax : $const.npdMax - $const.npdTaper * ($w - $const.mma); $round($n > 0 ? $n : 0, 2))"
      },
      {
        "path": "$.taxBase",
        "expr": "($b := grossMonthly - npd; $round($b > 0 ? $b : 0, 2))"
      },
      {
        "path": "$.pit",
        "expr": "$round(taxBase * $const.pitRate, 2)"
      },
      {
        "path": "$.netMonthly",
        "expr": "$round(grossMonthly - sodra - pit, 2)"
      }
    ],
    "constraints": [],
    "metaDerivations": [],
    "viewDefinition": {
      "renderer": "builtin",
      "defaultView": "main",
      "views": [
        {
          "id": "main",
          "label": "Atlyginimas į rankas",
          "layout": "vertical",
          "components": [
            {
              "id": "gross",
              "type": "numericField",
              "label": "Bruto atlyginimas / mėn (EUR)",
              "bind": "$.grossMonthly"
            },
            {
              "id": "tiles",
              "type": "group",
              "layout": "horizontal",
              "components": [
                {
                  "id": "netM",
                  "type": "statTile",
                  "label": "Į rankas / mėn",
                  "bind": "$.netMonthly",
                  "format": "currency",
                  "currency": "EUR"
                }
              ]
            },
            {
              "id": "breakdown",
              "type": "keyValueList",
              "label": "Išskaičiavimai",
              "items": [
                {
                  "label": "Bruto",
                  "bind": "$.grossMonthly",
                  "format": "currency",
                  "currency": "EUR"
                },
                {
                  "label": "Sodra (19,5%)",
                  "bind": "$.sodra",
                  "format": "currency",
                  "currency": "EUR"
                },
                {
                  "label": "NPD",
                  "bind": "$.npd",
                  "format": "currency",
                  "currency": "EUR"
                },
                {
                  "label": "GPM (20%)",
                  "bind": "$.pit",
                  "format": "currency",
                  "currency": "EUR"
                },
                {
                  "label": "Į rankas",
                  "bind": "$.netMonthly",
                  "format": "currency",
                  "currency": "EUR"
                }
              ]
            },
            {
              "id": "note",
              "type": "staticText",
              "text": "'Lietuva 2026: Sodra 19,5%, GPM 20% nuo bruto atėmus NPD; NPD 747 EUR iki MMA (1153 EUR), toliau mažėja 0,49 nuo kiekvieno euro ir išnyksta ties ~2677 EUR. Įvertis, ne mokestinė konsultacija.'"
            },
            {
              "id": "sources",
              "type": "sourceList",
              "label": "Šaltiniai",
              "items": [
                {
                  "label": "VMI",
                  "url": "https://www.vmi.lt",
                  "date": "2026-08-02"
                },
                {
                  "label": "Sodra",
                  "url": "https://www.sodra.lt",
                  "date": "2026-08-02"
                }
              ]
            }
          ]
        }
      ]
    },
    "tests": [
      {
        "description": "S1 1,500 EUR",
        "given": {
          "$.grossMonthly": 1500
        },
        "expect": {
          "$.sodra": 292.5,
          "$.npd": 576.97,
          "$.pit": 184.61,
          "$.netMonthly": 1022.89
        }
      },
      {
        "description": "S3 5,000 EUR — NPD phased to zero",
        "given": {
          "$.grossMonthly": 5000
        },
        "expect": {
          "$.npd": 0,
          "$.pit": 1000,
          "$.netMonthly": 3025
        }
      }
    ]
  }
}
