{
  "$comment": "Machine-readable companion to https://valem.run/calculators/ukraine/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/ukraine/net-salary",
  "dataUrl": "https://valem.run/calculators/ukraine/net-salary.json",
  "license": {
    "name": "CC BY 4.0",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "attribution": "Ukraine net salary model by Valem (https://valem.run/calculators/ukraine/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/ukraine/net-salary/verify",
  "country": "ukraine",
  "countryName": "Ukraine",
  "formula": "net-salary",
  "formulaName": "Net salary",
  "title": "Калькулятор Зарплати — Ukraine net salary",
  "answer": "Your Ukrainian take-home is gross minus 18% income tax and a 5% military levy — net equals 77% of gross.",
  "lang": "en",
  "currency": "UAH",
  "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": "ДПС України (tax.gov.ua)",
      "url": "https://tax.gov.ua",
      "checked": "2026-08-02"
    }
  ],
  "terminalOutput": "netMonthly",
  "inputs": [
    {
      "name": "grossMonthly",
      "type": "number",
      "label": "Зарплата брутто / міс (UAH)",
      "format": "currency",
      "minimum": 0
    }
  ],
  "outputs": [
    {
      "name": "pdfl",
      "type": "number",
      "label": "ПДФО (18%)",
      "format": "currency",
      "formula": "$round(grossMonthly * $const.pdflRate, 2)"
    },
    {
      "name": "military",
      "type": "number",
      "label": "Військовий збір (5%)",
      "format": "currency",
      "formula": "$round(grossMonthly * $const.militaryRate, 2)"
    },
    {
      "name": "netMonthly",
      "type": "number",
      "label": "На руки / міс",
      "format": "currency",
      "formula": "$round(grossMonthly - pdfl - military, 2)"
    }
  ],
  "testCases": [
    {
      "description": "S1 25,000 UAH",
      "given": {
        "grossMonthly": 25000
      },
      "expect": {
        "pdfl": 4500,
        "military": 1250,
        "netMonthly": 19250
      }
    },
    {
      "description": "S2 8,000 UAH (minimum wage)",
      "given": {
        "grossMonthly": 8000
      },
      "expect": {
        "pdfl": 1440,
        "military": 400,
        "netMonthly": 6160
      }
    }
  ],
  "spec": {
    "id": "net-salary-ukraine",
    "version": "1.0.0",
    "schema": {
      "type": "object",
      "properties": {
        "grossMonthly": {
          "type": "number",
          "minimum": 0
        },
        "pdfl": {
          "type": "number",
          "readOnly": true
        },
        "military": {
          "type": "number",
          "readOnly": true
        },
        "netMonthly": {
          "type": "number",
          "readOnly": true
        }
      }
    },
    "constants": {
      "pdflRate": 0.18,
      "militaryRate": 0.05
    },
    "defaultValues": [
      {
        "path": "$",
        "expr": "{ 'grossMonthly': 25000 }"
      }
    ],
    "derivations": [
      {
        "path": "$.pdfl",
        "expr": "$round(grossMonthly * $const.pdflRate, 2)"
      },
      {
        "path": "$.military",
        "expr": "$round(grossMonthly * $const.militaryRate, 2)"
      },
      {
        "path": "$.netMonthly",
        "expr": "$round(grossMonthly - pdfl - military, 2)"
      }
    ],
    "constraints": [],
    "metaDerivations": [],
    "viewDefinition": {
      "renderer": "builtin",
      "defaultView": "main",
      "views": [
        {
          "id": "main",
          "label": "Зарплата на руки",
          "layout": "vertical",
          "components": [
            {
              "id": "gross",
              "type": "numericField",
              "label": "Зарплата брутто / міс (UAH)",
              "bind": "$.grossMonthly"
            },
            {
              "id": "tiles",
              "type": "group",
              "layout": "horizontal",
              "components": [
                {
                  "id": "netM",
                  "type": "statTile",
                  "label": "На руки / міс",
                  "bind": "$.netMonthly",
                  "format": "currency",
                  "currency": "UAH"
                }
              ]
            },
            {
              "id": "breakdown",
              "type": "keyValueList",
              "label": "Утримання",
              "items": [
                {
                  "label": "Брутто",
                  "bind": "$.grossMonthly",
                  "format": "currency",
                  "currency": "UAH"
                },
                {
                  "label": "ПДФО (18%)",
                  "bind": "$.pdfl",
                  "format": "currency",
                  "currency": "UAH"
                },
                {
                  "label": "Військовий збір (5%)",
                  "bind": "$.military",
                  "format": "currency",
                  "currency": "UAH"
                },
                {
                  "label": "На руки",
                  "bind": "$.netMonthly",
                  "format": "currency",
                  "currency": "UAH"
                }
              ]
            },
            {
              "id": "note",
              "type": "staticText",
              "text": "'Україна 2025: на руки = брутто − 18% ПДФО − 5% військовий збір = брутто × 0,77. ЄСВ 22% сплачує роботодавець. Оцінка, не податкова консультація.'"
            },
            {
              "id": "sources",
              "type": "sourceList",
              "label": "Джерела",
              "items": [
                {
                  "label": "ДПС України (tax.gov.ua)",
                  "url": "https://tax.gov.ua",
                  "date": "2026-08-02"
                }
              ]
            }
          ]
        }
      ]
    },
    "tests": [
      {
        "description": "S1 25,000 UAH",
        "given": {
          "$.grossMonthly": 25000
        },
        "expect": {
          "$.pdfl": 4500,
          "$.military": 1250,
          "$.netMonthly": 19250
        }
      },
      {
        "description": "S2 8,000 UAH (minimum wage)",
        "given": {
          "$.grossMonthly": 8000
        },
        "expect": {
          "$.pdfl": 1440,
          "$.military": 400,
          "$.netMonthly": 6160
        }
      }
    ]
  }
}
