Sub topic 6
Account for Working Days and Holidays
Assume you know basic project terms such as task, deadline, and deliverable. You should also be comfortable reading a calendar and using a spreadsheet or simple script. This chapter focuses on the calendar behind a Gantt chart.
A schedule can measure time in two ways:
- Elapsed days include every calendar day, including weekends and holidays.
- Working days include only days when the assigned team can work.
A task estimated at five working days does not always finish five calendar days after it starts. A task that begins on Friday may finish the following Thursday if Saturday and Sunday are non-working days.
Define the project calendar
Before calculating dates, define the rules that control available work time.
A project calendar usually specifies:
- Working weekdays, such as Monday through Friday.
- Public holidays.
- Company shutdowns.
- Team-specific leave or training days.
- Working hours, if the schedule uses hours instead of whole days.
- The time zone used for dates and deadlines.
Keep the calendar separate from task estimates. “Three working days” describes the effort or duration. The calendar determines which dates count toward those three days.
| Calendar rule | Example |
|---|---|
| Working weekdays | Monday–Friday |
| Weekly non-working days | Saturday and Sunday |
| Public holiday | Monday, January 19 |
| Task duration | 3 working days |
| Start date | Friday, January 16 |
If January 19 is a holiday, a three-working-day task starting January 16 finishes January 21 when the start date counts as day one.
Apply a calendar to dependencies
A dependency says when one task may begin relative to another. With a finish-to-start dependency, the successor starts after its predecessor finishes. The successor must then move to the next available working day.
For example:
- Research starts on Friday and takes one working day.
- Research finishes on Friday.
- Design depends on Research and takes two working days.
- Saturday and Sunday do not count, so Design starts on Monday.
- If Monday is a holiday, Design starts on Tuesday.
The same rule applies to a chain of tasks. A holiday near the beginning can move every dependent task, even when those tasks do not use the holiday themselves.
Calculate working dates in code
The following script adds working days while skipping weekends and a holiday. It treats the starting date as the first working day. That convention matches the example above.
from datetime import date, timedelta
HOLIDAYS = {date(2026, 1, 19)} # Monday holiday
def is_working_day(day):
return day.weekday() < 5 and day not in HOLIDAYS
def finish_date(start, duration):
if duration < 1:
raise ValueError("duration must be at least 1 working day")
current = start
counted = 0
while True:
if is_working_day(current):
counted += 1
if counted == duration:
return current
current += timedelta(days=1)
start = date(2026, 1, 16) # Friday
print(finish_date(start, 3)) # 2026-01-21A production scheduling tool should also handle partial days, different team calendars, daylight-saving changes, and regional holidays. Do not assume that one global calendar represents every person on a project.
Check calendar assumptions
Calendars create common scheduling errors:
- Counting weekends as workdays.
- Forgetting a holiday in a contractor’s region.
- Using a holiday list from the wrong year.
- Treating a milestone as a task with duration.
- Mixing calendar-day estimates with working-day estimates.
- Changing the calendar without recording why dates moved.
- Ignoring resource availability when one person performs several dependent tasks.
When a date changes, inspect both the task duration and the calendar. A delay may come from added work, a new dependency, or reduced availability.
Exercise
A task starts on Thursday, takes three working days, and Friday is a holiday. Saturday and Sunday are also non-working days. On which date does the task finish if the start date counts as day one?
Show answer
Tuesday. Thursday is day one, Monday is day two, and Tuesday is day three.