I am doing a support ticket with 4 levels of severity.
Level 1 expects the ticket to be resolved in 4 hours
Level 2 expects the ticket to be resolved in 8 hours.
Level 3 expects the ticket to be resolved in 72 hours aka 3 days.
Level 4 expects the ticket to be resolved in 120 hours aka 5 days.
So when a ticket is raised on a Thursday with level 4 severity, it should be expected to be solved by Next Wednesday. However, my code now included Saturday and Sunday into the calculation, resulting it to be resolved by next Monday instead
How do i exclude Saturday and Sunday out when calculating the expected time?
So for this picture, on 2019-01-18(Friday), the Severity is level 4 and the Deadline is 2019-01-23, which is not what i wanted because it included saturday and sunday inside. It should be 2019-01-25 instead.