[...] $combined = $clocked + calculateBreakMinutes($clocked); if ($combined < $overtime_threshold && $tech->hitQuota) { $quota_bonus = $overtime_threshold - $clocked; $combined = $clocked + calculateBreakMinutes($clocked + $quota_bonus); }