{
  "tool": "matric-nqf4.mathlit_tariff",
  "name": "Stepped tariff (CDU-GEN-NSC-400)",
  "answers": "The cost of consumption under a two-block stepped tariff, block by block.",
  "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); Mathematical Literacy row of §4 — a tariff computation",
  "endpoint": "/faculty/matric-nqf4/mathlit_tariff",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "unitsUsed",
      "blockOneLimit",
      "blockOneRate",
      "blockTwoRate"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "unitsUsed": {
        "type": "number",
        "description": "units consumed (≥ 0)",
        "minimum": 0,
        "maximum": 1000000
      },
      "blockOneLimit": {
        "type": "number",
        "description": "units in the first block",
        "minimum": 0.001,
        "maximum": 1000000
      },
      "blockOneRate": {
        "type": "number",
        "description": "rate per unit in block one",
        "minimum": 0,
        "maximum": 100000
      },
      "blockTwoRate": {
        "type": "number",
        "description": "rate per unit above the limit",
        "minimum": 0,
        "maximum": 100000
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "totalCost"
    ],
    "properties": {
      "totalCost": {
        "type": "number",
        "description": "the total cost (2 d.p.)"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "unitsUsed": 150,
    "blockOneLimit": 100,
    "blockOneRate": 1.5,
    "blockTwoRate": 2.1
  }
}