{
  "tool": "mm-organisation--people.bcea_overtime",
  "name": "Ordinary hours, overtime limit and overtime pay (CDU-BUS-ORG-900)",
  "answers": "Are this week’s hours within the statutory limits, and what overtime pay is due?",
  "degree": {
    "id": "competency:mm-organisation--people",
    "code": "CDU-BUS-ORG-900",
    "name": "MM Organisation & People",
    "version": "1.0.0"
  },
  "reference": "Basic Conditions of Employment Act 75 of 1997 s9(1)(a) (45 ordinary hours a week), s10(1) (overtime only by agreement, at most 10 hours a week), s10(2) (at least one and one-half times the wage)",
  "endpoint": "/faculty/mm-organisation--people/bcea_overtime",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "hourlyWage",
      "ordinaryHours",
      "overtimeHours"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "hourlyWage": {
        "type": "number",
        "description": "Ordinary hourly wage",
        "minimum": 0
      },
      "ordinaryHours": {
        "type": "number",
        "description": "Ordinary hours worked in the week",
        "minimum": 0,
        "maximum": 168
      },
      "overtimeHours": {
        "type": "number",
        "description": "Overtime hours worked in the week",
        "minimum": 0,
        "maximum": 168
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "overtimePay",
      "withinOrdinaryLimit",
      "withinOvertimeLimit"
    ],
    "properties": {
      "overtimePay": {
        "type": "number",
        "description": "Overtime hours × 1.5 × wage"
      },
      "withinOrdinaryLimit": {
        "type": "boolean",
        "description": "Ordinary hours ≤ 45"
      },
      "withinOvertimeLimit": {
        "type": "boolean",
        "description": "Overtime ≤ 10 hours"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "hourlyWage": 85,
    "ordinaryHours": 45,
    "overtimeHours": 8
  }
}