Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected calculation #4

Open
3dgroup opened this issue Aug 11, 2023 · 0 comments
Open

Unexpected calculation #4

3dgroup opened this issue Aug 11, 2023 · 0 comments

Comments

@3dgroup
Copy link

3dgroup commented Aug 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant