{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/finance.vat/1.3.0/input.json",
  "title": "VAT / GST — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "add",
        "remove"
      ],
      "description": "add tax to a net amount, or remove tax from a gross amount"
    },
    "amount": {
      "type": "number",
      "minimum": 0,
      "description": "Net when adding; gross when removing"
    },
    "ratePct": {
      "type": "number",
      "minimum": 0,
      "description": "Tax rate in percent (20 means 20%)"
    }
  },
  "required": [
    "amount",
    "ratePct"
  ],
  "description": "Add or remove a single-rate consumption tax (VAT or GST labeling). Gross = Net × (1 + rate/100); Net = Gross × 100 / (100 + rate). (calculation_version 1.3.0)"
}
