4.5, 'remaining' => 15.5, 'percentage' => 22.5, 'status' => 'within_limit']) { throw new RuntimeException('Unexpected SLA calculation: ' . json_encode($sla)); } $over = calculate_sla_usage(10.0, [8.0, 4.0]); if ($over['status'] !== 'exceeded' || $over['remaining'] !== 0.0) { throw new RuntimeException('Expected exceeded SLA to clamp remaining hours to zero'); } printf("Jobcard calculation tests: 5 passed\n");