{
  "tool": "matric-nqf4.econ_inflation",
  "name": "Inflation rate from two index values (CDU-GEN-NSC-400)",
  "answers": "The percentage change of a price index between two readings.",
  "degree": {
    "id": "competency:matric-nqf4",
    "code": "CDU-GEN-NSC-400",
    "name": "Senior Certificate (Amended) — exam-readiness programme (NQF 4 matric)",
    "version": "1.0.0"
  },
  "reference": "Umalusi/NSC subject catalogue, worked reference (offline reconstruction); Economics row of §4 — an inflation rate from two index values",
  "endpoint": "/faculty/matric-nqf4/econ_inflation",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "indexOld",
      "indexNew"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "indexOld": {
        "type": "number",
        "description": "earlier index value (> 0)",
        "minimum": 0.001,
        "maximum": 1000000
      },
      "indexNew": {
        "type": "number",
        "description": "later index value (≥ 0)",
        "minimum": 0,
        "maximum": 1000000
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "inflationPercent"
    ],
    "properties": {
      "inflationPercent": {
        "type": "number",
        "description": "the rate (%, 2 d.p.)"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "indexOld": 120,
    "indexNew": 129
  }
}