Calculating end dates for day duration tasks

The end dates for the day duration tasks are calculated according to the shop calendar. Non-working time and other constraints, such as partial work hours or vacation days, are considered in the calculation.

Day duration tasks are always counted as an entire day, regardless of when the actual work begins. For example, if a normal workday ends at 5:00 PM and the actual work begins at 4:45 PM, this counts as an entire day.

For this example, the normal workday is Monday through Friday, 8:00 AM to 5:00 PM. There is one override; Monday, 5/28, is a holiday. Task 1.1 started at 2:16 PM on 5/22.

Task Start Date and Time Due Date and Time Duration
1.1 5/22/2018 2:16 PM 5/23/2018 5:00 PM 2 Days
1.2 5/24/2018 8:00 AM 5/25/2018 5:00 PM 2 Days
1.3 5/29/2018 8:00 AM 5/30/2018 5:00 PM 2 Days
1.4 5/31/2018 8:00 AM 6/01/2018 5:00 PM 2 Days

For action sets that do not have a location calendar, the start time and the end time for a day duration task is always midnight (12:00 AM). Each task is always considered to be complete as of the “next” day. The “next” day is defined as the day after the actual work is complete. This ensures a valid start date and time is set for the day duration tasks that are dependent upon the completion of the current task.

The “next” day does not mean the “next” workday. It means the “next” calendar day. As shown in the example, it is conceivable for a task to be considered complete on a non-workday such as Saturday.

Task Start Date and Time Due Date and Time Duration
1.1 5/22/2018 2:16 PM 5/24/2018 12:00 AM 2 Days
1.2 5/24/2018 12:00 AM 5/26/2018 12:00 AM 2 Days
1.3 5/26/2018 12:00 AM 5/28/2018 12:00 AM 2 Days
1.4 5/28/2018 12:00 AM 5/30/2018 12:00 AM 2 Days