Sub topic 13
Rolling up estimates from work packages
This chapter assumes you can read a WBS outline, know what a work package is, and have seen the hierarchical numbering scheme (1, 1.1, 1.1.1). You should also be comfortable reading short Python.
Why roll-ups work
A well-built WBS obeys the 100% rule. The children of an element make up all of that element's scope, and no two elements overlap. Because of this, you only need to estimate the lowest level. Every higher level is a sum of its children.
This is called a bottom-up roll-up. You estimate each work package, then add the numbers up the hierarchy until you reach the top element. The top total is the estimate for the whole project scope.
Estimating only at the leaves has three benefits:
- Each estimate covers a small, well-understood piece of work, so it tends to be more accurate than one guess for the whole project.
- Totals at every level stay consistent. A parent can never disagree with the sum of its children.
- You can report cost and effort for any deliverable, phase or team by reading the matching element.
What you roll up
Effort in person-days is the most common quantity. You can roll up other quantities with the same method:
| Quantity | Roll-up rule | Note |
|---|---|---|
| Effort (person-days) | Sum of children | Does not equal calendar time |
| Cost | Sum of children | Convert effort to cost at the leaf, using the rate for that work |
| Duration | Not a simple sum | Depends on dependencies and parallel work |
| Count of deliverables | Sum of children | Useful for progress reporting |
The duration row is the most common trap. If two work packages of 5 days each run in parallel, the parent takes 5 calendar days, but it still holds 10 person-days of effort. A WBS has no dependencies in it, so it cannot give you duration. The schedule does that, using the work packages as input.
Worked example
Using the website relaunch from earlier chapters, the leaf estimates are:
1 Website Relaunch
1.1 Design
1.1.1 Page templates 8 days
1.1.2 Style guide 3 days
1.2 Content
1.2.1 Migrated pages 10 daysThe roll-up works from the bottom:
- Element 1.1 is 8 + 3 = 11 days.
- Element 1.2 has only one child, so it is 10 days.
- Element 1 is 11 + 10 = 21 days.
The following code does the same calculation. It also checks that each child's code starts with its parent's code plus a dot. A child with a wrong code usually means it was attached to the wrong parent, so the check catches a structural error before it corrupts a total.
wbs = {
"code": "1", "name": "Website Relaunch",
"children": [
{"code": "1.1", "name": "Design", "children": [
{"code": "1.1.1", "name": "Page templates", "estimate_days": 8},
{"code": "1.1.2", "name": "Style guide", "estimate_days": 3},
]},
{"code": "1.2", "name": "Content", "children": [
{"code": "1.2.1", "name": "Migrated pages", "estimate_days": 10},
]},
],
}
def rollup(node):
children = node.get("children")
if not children:
return node["estimate_days"]
for child in children:
if not child["code"].startswith(node["code"] + "."):
raise ValueError(f"{child['code']} is not under {node['code']}")
return sum(rollup(child) for child in children)
print(rollup(wbs)) # 21The function treats an element with no children as a work package and reads its estimate. For any other element it ignores its own fields and sums the children. That rule enforces the principle that only leaves carry estimates.
The roll-up as a data flow
Edge cases and common errors
Estimates stored at parent levels
Some teams put an estimate on a parent element "for reference". Once a parent has its own number and also has children, two sources of truth exist. They drift apart as soon as one changes. Keep numbers on the leaves only. If you want to compare against a top-down figure, store it in a separate field, such as a budget target, and compare it to the roll-up.
Work that has no home in the WBS
Project management work, such as status reports and coordination, is real effort. If it has no element, the roll-up leaves it out and the total comes in low. This is why the example in this tutorial has element 1.4 for project management. The 100% rule applies to the estimate too: any work missing from the WBS is also missing from the total.
Overlapping elements
If two work packages both include the same task, for example "set up hosting" appears under both Platform and Design, the roll-up counts it twice. The total is then too high, and the team may do the work once while reporting it twice. Mutually exclusive elements prevent this. The excluded field in the WBS dictionary entry is where you record where neighboring work belongs.
Mixed units
A roll-up that adds days to hours, or cost in two currencies, produces a number that looks valid and is wrong. Choose one unit for each quantity and convert at the leaf.
Contingency and reserves
Padding each work package "to be safe" hides the risk inside many small numbers, and nobody can see or manage it. A common alternative is to keep work package estimates as honest as you can, then add a visible reserve as a separate line. Contingency reserves cover identified risks and are usually applied at the control account or project level. Management reserves cover unknown risks and sit outside the baseline. Both appear as their own lines, not inside leaf numbers.
Accuracy of totals
Adding many estimates does not make the total exact. Independent over- and under-estimates tend to partly cancel, which helps. Shared errors do not cancel. If every estimate assumes the same unapproved style guide, they are all wrong together. Record such assumptions in the dictionary, for example "Style guide 1.1.2 is approved before build starts", so you know which estimates to revisit when the assumption fails.
Supporting dictionary entries
Each leaf's estimate belongs in its WBS dictionary entry, next to the scope it covers, so a reviewer can judge the number against the boundaries.
code: "1.1.1"
name: Page templates
description: Responsive HTML/CSS templates for the home, article and contact pages.
deliverable: Approved template files in the project repository
acceptance_criteria:
- Renders correctly on the agreed browsers and screen widths
- Approved by the product owner
responsible: Design lead
estimate_days: 8
assumptions:
- Style guide 1.1.2 is approved before build starts
excluded: Content writing (see 1.2)Checking a roll-up
Before you publish totals, run these checks:
- Every leaf has an estimate in the agreed unit.
- No non-leaf element has its own estimate.
- Every child's code sits under its parent's code.
- Each parent total equals the sum of its children, which holds by construction if you compute it and never type it.
- The top total is plausible against any top-down budget. A large gap means a missing element, an overlap, or an unrealistic budget.
Summary
Estimate at the leaves, in one unit, and sum upward. Keep numbers off the parents, give every piece of work an element so nothing is missed, and keep elements from overlapping so nothing is counted twice. Show reserves as separate lines. Use the roll-up for cost and effort, and use the schedule for duration.
Exercise
A WBS has element 2 with children 2.1 (estimate 6 days) and 2.2 (children 2.2.1 at 4 days and 2.2.2 at 5 days). Someone has also typed "20 days" on element 2.2. What is the roll-up total for element 2, and what should you do about the "20 days"?
Show answer
Element 2.2 rolls up to 4 + 5 = 9 days, so element 2 is 6 + 9 = 15 days. The "20 days" on 2.2 is a second source of truth that disagrees with its children. Remove it, or move it to a separate field such as a top-down target, and investigate the 11-day gap. It may point to missing work under 2.2 or to an unrealistic target.
Exercise
Two work packages, 3.1 and 3.2, each estimate 5 person-days and can run in parallel with two people. What does the roll-up say for element 3 in effort, and why can you not state its duration from the WBS alone?
Show answer
The effort roll-up is 10 person-days. The WBS holds no dependencies or resource assignments, so it cannot give duration. With two people working in parallel the element might finish in about 5 calendar days, but with one person it would take 10. The schedule determines which.