Sub topic 2
Read the parts of a Gantt chart
This chapter assumes you know basic project terms (task, deadline, deliverable) and can read a calendar. It also assumes you can run a short Python script.
A Gantt chart is a bar chart of a schedule. Each task is a horizontal bar. The bar starts at the task's start date and its length shows the task's duration. Arrows or after links show dependencies, and diamonds or zero-length bars mark milestones.
Account for working days and holidays
Durations in a plan usually count working days, not calendar days. A 5-day task that starts on Monday 5 January 2026 ends on Friday 9 January. Each public holiday that falls inside a task adds one working day to its finish. Keep a list of holidays and skip them when you count.
Calculate start and finish dates with a forward pass
A forward pass is a calculation that moves from the first task to the last. Each task starts when its latest predecessor finishes. The project finish is the largest finish value.
tasks = {
"Wireframes": (5, []),
"Mockups": (7, ["Wireframes"]),
"Backend": (12, ["Wireframes"]),
"Frontend": (10, ["Mockups"]),
"Integration": (4, ["Frontend", "Backend"]),
}
start, finish = {}, {}
for name, (duration, preds) in tasks.items():
start[name] = max((finish[p] for p in preds), default=0)
finish[name] = start[name] + duration
print(max(finish.values())) # 26Find the critical path
The critical path is the chain of tasks that sets the project finish. Any delay on it delays the whole project. Here, Wireframes, Mockups, Frontend and Integration finish on day 26. Backend finishes on day 17, so it is not critical.
Slack
Slack is the number of days a task can slip without moving the project finish. Backend has 5 days of slack, because Integration cannot start before day 22.
Exercise
Backend has a duration of 12 days and starts on day 5. How many days of slack does it have?
Show answer
Backend finishes on day 17. Integration starts on day 22. The slack is 22 - 17 = 5 days.