Sub topic 10
Use Slack to Plan Flexibility
This chapter assumes you can already compute earliest start and finish dates with a forward pass and can pick out the critical path. It also assumes you read Gantt bars and finish-to-start dependencies without trouble. Here you compute slack, separate its two forms, and use it to make scheduling decisions.
What slack is
Slack, also called float, is the amount of time a task can slip without causing a specific problem. The two usual problems are delaying the project finish and delaying another task.
A task's slack is the gap between the earliest it can happen and the latest it can happen:
- Earliest start (ES) and earliest finish (EF) come from the forward pass.
- Latest start (LS) and latest finish (LF) come from a backward pass. They give the latest dates a task can have while the project still finishes on time.
- Total slack is LS − ES. Because duration is constant, this equals LF − EF.
Tasks with zero total slack are the critical path. Every other task has room to move, and that room is a planning resource. You can spend it on risk, on people's availability, or on ordering work sensibly.
Calculate slack with a backward pass
The backward pass runs in the opposite direction from the forward pass. It starts at the project end date and works toward the first task.
- Set the late finish of every task with no successors to the project end date.
- Set each task's late start to its late finish minus its duration.
- For a task with successors, set its late finish to the smallest late start among those successors.
The smallest value is the rule that matters. A task that feeds two successors must be done in time for whichever one needs it first.
The script below extends the forward pass from earlier chapters. It uses the same five tasks and lists predecessors before successors, so walking the dictionary in reverse visits every task after all its successors.
tasks = {
"Wireframes": (5, []),
"Mockups": (7, ["Wireframes"]),
"Backend": (12, ["Wireframes"]),
"Frontend": (10, ["Mockups"]),
"Integration": (4, ["Frontend", "Backend"]),
}
# Forward pass: earliest start and finish.
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
project_end = max(finish.values())
# Invert the predecessor links to get successors.
successors = {name: [] for name in tasks}
for name, (_, preds) in tasks.items():
for p in preds:
successors[p].append(name)
# Backward pass: latest start and finish.
late_start, late_finish = {}, {}
for name in reversed(list(tasks)):
duration = tasks[name][0]
late_finish[name] = min(
(late_start[s] for s in successors[name]), default=project_end
)
late_start[name] = late_finish[name] - duration
print(f"{'Task':<12}{'ES':>4}{'EF':>4}{'LS':>4}{'LF':>4}{'Total':>7}{'Free':>6}")
for name in tasks:
total = late_start[name] - start[name]
free = min((start[s] for s in successors[name]), default=project_end) - finish[name]
print(
f"{name:<12}{start[name]:>4}{finish[name]:>4}"
f"{late_start[name]:>4}{late_finish[name]:>4}{total:>7}{free:>6}"
)Running it prints:
Task ES EF LS LF Total Free
Wireframes 0 5 0 5 0 0
Mockups 5 12 5 12 0 0
Backend 5 17 10 22 5 5
Frontend 12 22 12 22 0 0
Integration 22 26 22 26 0 0Backend can start as early as day 5 or as late as day 10, and the project still ends on day 26. It has 5 days of total slack. The other four tasks have none, which confirms the critical path Wireframes, Mockups, Frontend, Integration.
Notice that Wireframes has two successors. Mockups needs it by day 5 and Backend by day 10, so the earlier date wins and Wireframes has no slack.
See slack on the chart
The Gantt chart below plots the same schedule. The Backend bar is the earliest-dates position. The bar labeled "Backend slack" marks the window where Backend can slip without moving the finish.
The durations here count calendar days, to match the numbers from the script. With a working calendar, the day offsets would map to different dates, as covered in the earlier chapter on working days.
Total slack versus free slack
Total slack answers "how late can this task be before the project end moves?" Free slack answers a narrower question: "how late can this task be before the next task is delayed?" Free slack is the smallest successor ES minus this task's EF. It is never larger than total slack.
The distinction matters when several non-critical tasks sit in a chain. The slack on the chain is shared, not given to each task. Suppose the example gains a 3-day "Load tests" task between Backend and Integration:
| Task | ES | EF | LS | LF | Total slack | Free slack |
|---|---|---|---|---|---|---|
| Backend | 5 | 17 | 7 | 19 | 2 | 0 |
| Load tests | 17 | 20 | 19 | 22 | 2 | 2 |
Both tasks report 2 days of total slack, but there are only 2 days to spend between them. If Backend slips by 2 days, Load tests starts on day 19 and has no slack left. Backend's free slack of 0 signals this: any delay on Backend pushes its successor.
Spend slack deliberately
Slack gives you freedom, but only if someone decides how to use it. Common uses:
- Resource smoothing. If one developer is assigned to both Backend and a critical task, moving Backend within its window removes the overlap without touching the finish date.
- Absorbing risk. Put the riskiest non-critical work early in its window, so a failure shows up while there is still time to react.
- Waiting for inputs. If a vendor delivers a component on day 8, you can see that Backend still finishes in time even though it starts at day 8 rather than 5.
- Choosing a start date. Starting a task at its late start keeps cash and people free for longer. Starting at its early start gives the most protection. Pick one policy per project and state it.
Tasks with small slack deserve attention too. A task with 1 day of total slack is not critical, yet one small overrun makes it so. Many teams flag tasks with slack below a threshold, such as 10% of the project length, as near-critical and track them like the critical path.
Edge cases and failure modes
Negative slack
If the project has a fixed deadline earlier than the forward pass result, the backward pass starts from the deadline instead of from the computed end. In the script, you would replace project_end in the backward pass with the deadline, for example 24. The critical tasks then show total slack of −2. Negative slack means the plan cannot meet the date as written. The fixes are to shorten durations on the critical path, add parallelism, reduce scope, or renegotiate the date. Hiding it by editing the slack column hides the problem rather than solving it.
Slack that is not really there
Slack is only as reliable as the estimates and dependencies behind it. These cases make the number misleading:
- Missing dependencies. If Backend actually needs the final Mockups, the plan shows slack that does not exist. Review links before trusting any float.
- Padded estimates. If every task already carries a hidden safety margin, the slack shown on top of it counts the same cushion twice. Estimate honestly, then let slack carry the buffer.
- Resource conflicts. Slack is computed as if people were unlimited. Two non-critical tasks assigned to the same person can each have slack and still not both fit in the window.
- Date constraints. A task with "must start on or after day 8" has its ES moved, which changes the slack the script reports. The script above does not model constraints, lags or leads.
Changing the plan changes the critical path
Slack is not a fixed property of a task. When a task's duration grows, slack on other tasks shrinks, and the critical path can move. Recompute after each significant change instead of assuming earlier numbers still hold.
Calendar effects
If tasks use different working calendars, for example a vendor who works weekends, slack in working days can differ from slack in elapsed days. Compute slack on real dates, not on abstract offsets, once calendars are in play.
Practice
Exercise
In the five-task example, Backend's duration grows from 12 days to 19 days. Using the forward and backward passes, what is the new project length, which tasks are critical, and how much slack do Mockups and Frontend have?
Show answer
Backend now runs from day 5 to day 24 (5 + 19). Frontend still finishes on day 22, so Integration cannot start before day 24 and finishes on day 28. The project is 28 days long. The critical path becomes Wireframes, Backend, Integration. Working backward from day 28: Integration LS = 24, Frontend LF = 24 and LS = 14, so Frontend's slack is 14 − 12 = 2. Mockups LF = 14, LS = 7, so its slack is 7 − 5 = 2. Both have 2 days of slack, which they share, because they form a chain.
Exercise
A task has 4 days of total slack but 0 days of free slack. What does that tell you, and how should you communicate it to the task owner?
Show answer
The project end date can absorb a 4-day delay, but the task's immediate successor starts right when the task finishes, so any delay on this task pushes that successor. The slack is shared with tasks later in the same chain. Tell the owner that the task has no room to slip without affecting the next task, and coordinate with the successor's owner before anyone uses the slack.