Sub topic 7
Calculate Start and Finish Dates with a Forward Pass
Assume you already know basic project terms such as task, deliverable, and deadline. You should also be comfortable reading a calendar and doing simple date or duration calculations. A spreadsheet or basic scripting experience is helpful but not required.
A forward pass calculates the earliest time each task can start and finish. It moves through the schedule from the first task to the last one. For each task, use this rule:
- Earliest start = the latest finish among its predecessors
- Earliest finish = earliest start + task duration
A predecessor is a task that must finish before another task can start. If a task has no predecessor, its earliest start is zero, or the project's chosen start date.
Use a dependency-ordered task list
Consider this small website project:
| Task | Duration | Predecessors |
|---|---|---|
| Wireframes | 5 days | None |
| Mockups | 7 days | Wireframes |
| Backend | 12 days | Wireframes |
| Frontend | 10 days | Mockups |
| Integration | 4 days | Frontend, Backend |
Wireframes must finish before Mockups or Backend can begin. Frontend waits for Mockups. Integration waits for both Frontend and Backend.
The tasks should be processed in dependency order. A predecessor must appear before every task that depends on it. This order works:
- Wireframes
- Mockups
- Backend
- Frontend
- Integration
The two branches after Wireframes can proceed in parallel. That is why Backend does not have to wait for Mockups.
Calculate each task
Start with Wireframes. It has no predecessor, so its earliest start is day 0. Its earliest finish is day 5.
Mockups starts when Wireframes finishes, at day 5. It finishes at day 12. Backend also starts at day 5, but its 12-day duration gives it a finish at day 17.
Frontend starts after Mockups, at day 12, and finishes at day 22. Integration has two predecessors. It cannot start at day 17, when Backend finishes, because Frontend finishes later. It starts at the latest predecessor finish, day 22, and finishes at day 26.
| Task | Earliest start | Earliest finish | Calculation |
|---|---|---|---|
| Wireframes | 0 | 5 | 0 + 5 |
| Mockups | 5 | 12 | 5 + 7 |
| Backend | 5 | 17 | 5 + 12 |
| Frontend | 12 | 22 | 12 + 10 |
| Integration | 22 | 26 | max(22, 17) + 4 |
The project's earliest completion is day 26. The schedule length is controlled by the chain Wireframes, Mockups, Frontend, and Integration. This chain is a candidate for the critical path, which is the dependency chain that determines the project finish date.
Automate the forward pass
The following script represents each task as a duration and a list of predecessors. The finish dictionary stores calculated results. For tasks with multiple predecessors, max selects the latest predecessor finish.
tasks = {
"Wireframes": (5, []),
"Mockups": (7, ["Wireframes"]),
"Backend": (12, ["Wireframes"]),
"Frontend": (10, ["Mockups"]),
"Integration": (4, ["Frontend", "Backend"]),
}
start, finish = {}, {}
for name, (duration, predecessors) in tasks.items():
start[name] = max(
(finish[predecessor] for predecessor in predecessors),
default=0,
)
finish[name] = start[name] + duration
print(f"{name}: starts day {start[name]}, finishes day {finish[name]}")
print(f"Project duration: {max(finish.values())} days")This script uses elapsed days, where day 0 is the project start. To display calendar dates, add each calculated offset to the project start date. If the schedule uses working days, add working days rather than ordinary calendar days.
Account for calendars
A duration of five working days is not always five calendar days. Weekends, holidays, planned shutdowns, and resource calendars can extend the calendar finish date. Decide whether each duration means elapsed time or working time before calculating dates.
Keep the dependency logic separate from calendar rules. First determine which predecessor controls a task. Then apply the project or resource calendar to convert durations and offsets into actual dates. This prevents a holiday from being silently treated as a normal workday.
Exercise
Wireframes finishes on day 6. Design Review takes 2 days and depends on Wireframes. Development takes 8 days and depends on Wireframes. Testing takes 3 days and depends on both Design Review and Development. What are the earliest start and finish days for Testing?
Show answer
Design Review finishes on day 8, and Development finishes on day 14. Testing starts on day 14, the later predecessor finish, and finishes on day 17.