Show contents
Chapter 6 of 7 · 25 min
Project: the plan of a real project
By the end of this chapter, you'll be able to
- Build an estimated and prioritised backlog
- Split the work into iterations according to the team's capacity
- Forecast a delivery date with a confidence level
- Write a clear summary for a decision-maker
The plan
It all fits on one page: what will be delivered, when, and under what conditions.
Text description of the animation
- Each item gets a priority and an estimate range.
- Items are spread over fixed-capacity iterations, in priority order.
- The simulation turns the ranges into probabilities.
- The main risks are identified, each with a response.
- It all fits on one page: what will be delivered, when, and under what conditions.
The complete program
The team has two full-time people, so 10 days of work per one-week iteration. Estimates are in working days: (optimistic, likely, pessimistic).
import random
backlog = [
("Online registration", "M", (3, 4, 7)),
("School office dashboard", "M", (2, 3, 5)),
("Confirmation email", "M", (1, 1, 2)),
("Spreadsheet export of registrations", "S", (1, 1, 2)),
("Fee payment by mobile money", "S", (3, 5, 12)),
("Automatic SMS reminders", "C", (2, 3, 5)),
("Native mobile app", "W", (15, 20, 30)),
]
CAPACITY = 10
ORDER = {"M": 0, "S": 1, "C": 2, "W": 3}
def expected(o, m, p):
return (o + 4 * m + p) / 6
selected = [e for e in sorted(backlog, key=lambda e: ORDER[e[1]]) if e[1] != "W"]
iterations, current, load = [], [], 0.0
for name, moscow, estimate in selected:
duration = expected(*estimate)
if load + duration > CAPACITY and current:
iterations.append((current, load))
current, load = [], 0.0
current.append(name)
load += duration
iterations.append((current, load))
for i, (content, load) in enumerate(iterations, start=1):
print(f"Iteration {i} ({load:.1f} d): {', '.join(content)}")
rng = random.Random(2026)
totals = sorted(sum(rng.triangular(o, p, m) for _, _, (o, m, p) in selected) for _ in range(10_000))
weeks = lambda days: days / CAPACITY
print(f"\nExpected work: {sum(expected(*e) for _, _, e in selected):.1f} days")
for pct in (50, 80, 95):
days = totals[len(totals) * pct // 100 - 1]
print(f"{pct}% confidence: {days:.1f} days, that is {weeks(days):.1f} weeks")
Iteration 1 (9.8 d): Online registration, School office dashboard, Confirmation email, Spreadsheet export of registrations
Iteration 2 (9.0 d): Fee payment by mobile money, Automatic SMS reminders
Expected work: 18.8 days
50% confidence: 20.5 days, that is 2.0 weeks
80% confidence: 22.7 days, that is 2.3 weeks
95% confidence: 24.7 days, that is 2.5 weeks
- “Won't” items (the native app) are set aside from the start: the decision is owned and visible;
- each iteration is filled in priority order, up to capacity; an item that no longer fits opens the next iteration;
- the simulation adds up durations drawn at random within each range, 10,000 times, with a fixed seed for a reproducible result;
- converting to weeks assumes a constant capacity of 10 days per week: no leave or outside interruptions.
The summary for the headteacher
A decision-maker does not need the details of the calculations: she needs a clear answer, honest about the uncertainty, and the decisions that are hers to make.
risks = [
("The payment provider is slow to grant access", 4, 4),
("Connection peak on registration day", 3, 5),
("Registration rules change during the project", 2, 3),
]
high = [r for r in risks if r[1] * r[2] >= 15]
print("PROJECT SHEET — Online registration")
print("Delivered first (iteration 1): online registration, dashboard, confirmation email, spreadsheet export")
print("Then (iteration 2): mobile money payment and SMS reminders")
print("Out of scope: native mobile app (the website works on phones)")
print("Timeline: 2 weeks in half of cases, 2.5 weeks with a 95% safety margin")
print(f"High risks ({len(high)}):")
for name, p, i in sorted(high, key=lambda r: r[1] * r[2], reverse=True):
print(f" - {name} (criticality {p * i})")
print("Decision needed: confirm the payment provider this week")
PROJECT SHEET — Online registration
Delivered first (iteration 1): online registration, dashboard, confirmation email, spreadsheet export
Then (iteration 2): mobile money payment and SMS reminders
Out of scope: native mobile app (the website works on phones)
Timeline: 2 weeks in half of cases, 2.5 weeks with a 95% safety margin
High risks (2):
- The payment provider is slow to grant access (criticality 16)
- Connection peak on registration day (criticality 15)
Decision needed: confirm the payment provider this week
This sheet answers the headteacher's three questions, announces a range instead of a promise, and ends with what is expected of her. It is often the most useful part: a project rarely moves faster than the decisions it is waiting for.
Mini-lab: what if we added SMS?Python 3.13
Output
Click “Run”: Python will load in your browser (about 10 MB the first time).Your code runs in your browser, isolated from the page. · Ctrl/⌘ + Enter to run · Esc then Tab to leave the editor
Your turn
Worked exercise
Worked exercise: recompute after the first iteration
After the first week, the team has finished the online registration and the confirmation email, but not the dashboard. These two items took 7 days instead of the 5.5 planned, and the team only had 8 days of actual work instead of 10. Recompute: the remaining items (with their estimates), the expected remaining work, and the number of weeks needed if the team keeps a capacity of 8 days per week.
Hint 1
Hint 2
Show the solution and common mistakes
selected = [
("Online registration", (3, 4, 7)),
("School office dashboard", (2, 3, 5)),
("Confirmation email", (1, 1, 2)),
("Spreadsheet export of registrations", (1, 1, 2)),
("Fee payment by mobile money", (3, 5, 12)),
("Automatic SMS reminders", (2, 3, 5)),
]
finished = {"Online registration", "Confirmation email"}
def expected(o, m, p):
return (o + 4 * m + p) / 6
left = [(name, e) for name, e in selected if name not in finished]
work = sum(expected(*e) for _, e in left)
for name, e in left:
print(f"{expected(*e):>4.1f} d {name}")
print(f"Remaining work: {work:.1f} days")
print(f"At 8 days per week: {work / 8:.1f} more weeks")
3.2 d School office dashboard
1.2 d Spreadsheet export of registrations
5.8 d Fee payment by mobile money
3.2 d Automatic SMS reminders
Remaining work: 13.3 days
At 8 days per week: 1.7 more weeks
About 13 days of work remain, a little under two weeks at the real capacity, instead of the one week planned at the start. This is the information to pass on to the headteacher straight away, with a proposal: for example, keeping SMS for later if the start-of-term date is fixed.
Common mistakes:
- Keeping the theoretical capacity of 10 days: the forecast would stay optimistic, when the first week showed the real capacity.
- Removing the dashboard because it is “almost done”: only finished work counts, it stays in the calculation.
Summary
- 1A plan starts from a backlog prioritised and estimated as ranges, without the “Won't” items.
- 2Iterations are filled in priority order, within the team's capacity.
- 3The forecast is announced with a confidence level: “2 weeks in half of cases, 2.5 with a good margin”.
- 4A summary for a decision-maker says what will be delivered, when, the risks, and the decisions needed.
- 5A plan is a hypothesis: recompute it with the facts at every iteration, and warn early.
Your progress is saved on this device. Create a free account to keep your progress on all your devices.