{
  "tool": "matric-nqf4.acc_depreciation",
  "name": "Depreciation (CDU-GEN-NSC-400)",
  "answers": "Depreciation for a chosen year and the carrying value, on the straight-line or the diminishing-balance method.",
  "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); Accounting row of §4 — depreciation and carrying value",
  "endpoint": "/faculty/matric-nqf4/acc_depreciation",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "cost",
      "ratePercent",
      "year",
      "method"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "cost": {
        "type": "number",
        "description": "cost price (> 0)",
        "minimum": 0.01,
        "maximum": 1000000000
      },
      "ratePercent": {
        "type": "number",
        "description": "annual rate (%, 0–100)",
        "minimum": 0,
        "maximum": 100
      },
      "year": {
        "type": "number",
        "description": "which year (1-based whole number)",
        "minimum": 1,
        "maximum": 100
      },
      "method": {
        "type": "string",
        "description": "straight-line or diminishing-balance",
        "enum": [
          "straight-line",
          "diminishing-balance"
        ]
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "depreciationForYear",
      "carryingValue"
    ],
    "properties": {
      "depreciationForYear": {
        "type": "number",
        "description": "depreciation in that year (2 d.p.)"
      },
      "carryingValue": {
        "type": "number",
        "description": "carrying value at the end of that year (2 d.p.)"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "cost": 100000,
    "ratePercent": 20,
    "year": 3,
    "method": "diminishing-balance"
  }
}