sla-timer icon indicating copy to clipboard operation
sla-timer copied to clipboard

Unexpected calculation

Open 3dgroup opened this issue 2 years ago • 0 comments

I have some unexpected results returned within my application; here is an example:

$schedule = SLASchedule::create()->from('08:00:00')->to('17:00:00')->onWeekdays();
$sla = SLA::fromSchedule($schedule);
$result = $sla->duration($start, $end)->totalMinutes;

start: 27/04/2023 15:43:00 end: 28/04/2023 13:02:00

Should return 379 instead, it returns 76

3dgroup avatar Aug 11 '23 15:08 3dgroup