Sub topic 6
Assembling the budget total
This chapter assumes you can estimate labor and non-labor costs for a work package. It also assumes you know the direct, indirect, fixed and variable cost categories, and that you have chosen a contingency percentage. Here you combine those pieces into one approved number and learn the mistakes that make that number wrong.
The working model
A budget total is a sum of layers. Each layer has a defined base and is added in a fixed order.
- Labor is hours times rate for every task.
- Non-labor costs are licenses, hosting, travel, equipment and similar items.
- Direct costs are labor plus non-labor costs.
- Contingency is a percentage of the direct costs, held for risks you have identified.
- Indirect costs are overhead that your organization adds on top. Many internal projects have none.
- Budget total is direct costs plus contingency plus indirect costs.
The order matters because each layer is calculated from the layers below it. If you apply contingency to a number that already includes contingency, or to only part of the direct costs, the total changes.
A first calculation
The script below uses three tasks and two non-labor items. Contingency is 10% of direct costs.
tasks = [
{"name": "Design", "hours": 40, "rate": 80.0},
{"name": "Development", "hours": 120, "rate": 90.0},
{"name": "Testing", "hours": 50, "rate": 70.0},
]
non_labor = {"Software licenses": 1200.0, "Hosting": 600.0}
contingency_rate = 0.10
labor = sum(t["hours"] * t["rate"] for t in tasks)
direct = labor + sum(non_labor.values())
contingency = direct * contingency_rate
budget = direct + contingency
print(f"Labor: {labor:.2f}")
print(f"Direct costs: {direct:.2f}")
print(f"Contingency: {contingency:.2f}")
print(f"Budget: {budget:.2f}")The output is:
Labor: 17500.00
Direct costs: 19300.00
Contingency: 1930.00
Budget: 21230.00Check it by hand, as you should for any budget script:
- Labor is 40 × 80 + 120 × 90 + 50 × 70 = 3,200 + 10,800 + 3,500 = 17,500.
- Direct costs are 17,500 + 1,200 + 600 = 19,300.
- Contingency is 19,300 × 0.10 = 1,930.
- The budget is 19,300 + 1,930 = 21,230.
Choosing the contingency base
The example applies contingency to all direct costs. That is a decision, and you should state it in the budget document. There are three common choices.
| Approach | How it works | Typical use |
|---|---|---|
| One rate on total direct costs | Multiply the direct total by one percentage | Small projects with similar uncertainty everywhere |
| Rate per work package | Give risky packages a higher percentage, then sum | Projects where one area is much less certain |
| Risk-based amount | Sum the expected cost of each identified risk | Projects with a maintained risk register |
A single rate is simple and easy to defend. A per-package rate is more accurate when, for example, testing is well understood but a new integration is not. The cost is that every rate needs a reason, and reviewers will ask for it.
Whichever you choose, the contingency is part of the baseline you present. It is not a hidden margin inside the estimates. Padding individual estimates and then adding contingency counts the same risk twice, and the budget ends up inflated in a way nobody can explain.
Contingency and management reserve
Contingency covers risks you have identified, and the project manager normally controls it. A management reserve covers risks nobody has identified yet. It is usually held above the project manager, and spending it requires approval from a sponsor or steering group. Keep the two separate in the document:
- The cost baseline includes contingency.
- A management reserve, if your organization uses one, is added to the funding request but is not part of the baseline you track against.
If you merge them, you lose the ability to tell whether the team spent its own buffer or needed more money from outside.
Adding indirect costs
Direct costs can be traced to the project. Indirect costs are shared, such as office space, management time, finance support and utilities. Organizations usually add them as a rate on some base, for example 5% of direct costs.
You need to know two things before you add them:
- Whether your organization includes them in project budgets at all.
- Which base the rate applies to. It might be direct costs only, labor only, or direct costs plus contingency.
The numbers differ with the base. With a 5% rate on direct costs of 19,300, overhead is 965.00. With the same rate on direct costs plus contingency (21,230), it is 1,061.50. Ask for the rule instead of guessing, and write it next to the number.
A version you can extend
The first script puts everything in flat lists. In practice you want totals per work package, because the baseline and the variance analysis in later chapters work at that level. The script below also uses Decimal, which avoids the binary floating-point errors that can leave a total a cent off.
from decimal import Decimal, ROUND_HALF_UP
CENT = Decimal("0.01")
def money(value):
return Decimal(value).quantize(CENT, rounding=ROUND_HALF_UP)
packages = {
"Design": {"labor": [(40, "80.00")], "non_labor": []},
"Development": {"labor": [(120, "90.00")], "non_labor": []},
"Testing": {"labor": [(50, "70.00")], "non_labor": []},
"Project-wide": {"labor": [], "non_labor": ["1200.00", "600.00"]},
}
contingency_rate = Decimal("0.10")
indirect_rate = Decimal("0.05")
direct_total = Decimal("0")
for name, parts in packages.items():
labor = sum((hours * Decimal(rate) for hours, rate in parts["labor"]), Decimal("0"))
other = sum((Decimal(c) for c in parts["non_labor"]), Decimal("0"))
cost = money(labor + other)
direct_total += cost
print(f"{name}: {cost}")
contingency = money(direct_total * contingency_rate)
indirect = money(direct_total * indirect_rate)
budget = direct_total + contingency + indirect
print(f"Direct costs: {direct_total}")
print(f"Contingency: {contingency}")
print(f"Indirect: {indirect}")
print(f"Budget: {budget}")The output is:
Design: 3200.00
Development: 10800.00
Testing: 3500.00
Project-wide: 1800.00
Direct costs: 19300.00
Contingency: 1930.00
Indirect: 965.00
Budget: 22195.00Three details in this script matter:
- Rates are passed as strings, such as
"80.00".Decimal("80.00")is exact, whileDecimal(80.0)built from a float can carry a representation error. - Each package is rounded once, when its cost is computed. The grand total is the sum of rounded package costs, so the report always adds up on paper.
- Contingency and indirect costs are calculated from
direct_totaland rounded once each. Their order in the code mirrors the order in the model.
Rounding and presentation
Rounding rules cause arguments about a few cents, and they also produce totals that fail an audit. Pick one rule and apply it everywhere:
- Round at the work-package level and sum the rounded values, as above. The pages of your report will then add up.
- Do not round each hour-times-rate product and then round again at the package level.
- Show the same number of decimals throughout. If the budget is in the tens of thousands, whole currency units may be enough for the summary, but keep the cents in the calculation.
- Do not round the contingency up to a pleasant number silently. If you want a round budget, add an explicit "rounding" line or change the contingency rate and say so.
Common errors
| Error | Effect | How to catch it |
|---|---|---|
| Contingency applied to labor only | Total is too low, and non-labor risks are uncovered | Compare the contingency base with the direct-cost line |
| Contingency applied after overhead, or twice | Total is too high | Recompute each layer from the one below it |
| Non-labor items left out because they are "small" | Baseline is understated from day one | List every item and tie it to a package |
| Mixed units, such as days in one task and hours in another | Labor is off by a factor of eight or so | Add a unit column and check totals against known figures |
| Rate that includes overhead used together with an overhead line | Overhead is paid twice | Ask whether quoted rates are "loaded" |
| Padded estimates plus contingency | Total is inflated and unexplainable | Ask estimators for unpadded numbers |
| Totals pasted as values, not formulas | A changed estimate does not flow through | Change one input and check that the total moves |
What the total is for
The total you assemble here is the figure sponsors approve, but you also need its parts. The package costs, the contingency and the indirect amount feed the next steps. In the following chapter you spread them across time to create the baseline. After that you compare actual spending against that baseline, so the structure you build now sets what you can measure later. A single lump sum would approve fine and then be nearly useless for tracking.
Record these items next to the total so someone else can reproduce it:
- The date and the version of the estimates.
- The rates and their source.
- The contingency rate and the base it applies to.
- Any assumptions, such as "no indirect costs" or "licenses billed annually".
Exercise
A project has labor of 12,000 and non-labor costs of 3,000. Contingency is 8% of direct costs. The organization adds an indirect cost of 5% of direct costs (not of contingency). What is the budget total, and what would it be if the 5% were applied to direct costs plus contingency instead?
Show answer
Direct costs are 12,000 + 3,000 = 15,000. Contingency is 15,000 × 0.08 = 1,200. Indirect on direct costs only is 15,000 × 0.05 = 750, so the budget is 15,000 + 1,200 + 750 = 16,950. If the 5% applies to direct costs plus contingency, the base is 16,200 and the indirect cost is 810, so the budget is 15,000 + 1,200 + 810 = 17,010. The 60 difference comes only from the choice of base, which is why the base must be written down.
Exercise
In the first script, the contingency rate is changed to 0.15. What does the script print for the contingency and the budget, and why is the labor line unchanged?
Show answer
Contingency is 19,300 × 0.15 = 2,895.00 and the budget is 19,300 + 2,895 = 22,195.00. Labor stays at 17,500.00 because contingency is calculated after labor and does not feed back into it. It is a layer added on top of the direct costs.