Sub topic 8
Recording actual costs
This chapter covers how to record what a project has actually spent so that you can compare it with the baseline in the next chapter. It assumes you can read a simple budget table and run short Python scripts. It also assumes you know what a work package is and have a time-phased baseline, as built in earlier chapters.
Why actuals need their own discipline
A baseline says what you planned to spend. An actual is a cost that has really been incurred. Variance analysis and forecasting both depend on actuals, so errors recorded here carry into every later number.
Three habits keep the data usable:
- Record each actual against the same work package that the budget uses.
- Record each actual in the period when the cost was incurred, not only when it was paid.
- Keep the original record. Correct mistakes with a new entry instead of overwriting the old one.
The most common failure is a mismatch of structure. If the budget has "Design", "Development" and "Testing" but the accounting system books costs under "Salaries" and "Software", you cannot compare the two without a mapping. Fix this before the project starts by giving every work package a code that finance and timesheets both use.
Sources of actual cost
Actuals arrive from several places, each with its own delay and format.
| Source | What it gives you | Typical delay | Common problem |
|---|---|---|---|
| Timesheets | Hours worked per person per work package | Days to weeks | Late or missing entries, hours booked to the wrong package |
| Payroll or rate card | The cost rate for each person | Monthly | A rate that differs from the one used in the estimate |
| Supplier invoices | Non-labor charges such as licenses and hosting | Weeks | Invoice arrives after the work is done |
| Purchase orders | Money promised but not yet billed | Immediate | Treated as spent when it is not |
| Expense claims | Travel and small purchases | Weeks | Uncoded or batched at month end |
For labor, the actual cost is hours worked multiplied by the cost rate. Use the same kind of rate you used in the estimate. If the estimate used a blended rate of 90.00 per hour and you record actuals at each person's real rate, a variance appears even if the hours match. That is a rate variance, and it is easy to mistake for an overrun in effort.
Actual, committed, and accrued costs
Three terms describe where a cost is in its life. Mixing them up is the main source of under-reported spending.
- Actual cost is a cost already incurred and recorded.
- Committed cost is money you have promised to pay, such as a signed purchase order. It is not yet spent, but it is no longer available.
- Accrued cost is a cost for work done or goods received that has not been invoiced yet. It belongs in the period when the work happened.
A project that records only paid invoices will look under budget in the early months and then show a sudden jump. Accruals fix this. If a contractor worked 30 hours in October and invoices in November, the cost belongs to October.
The diagram below shows how one cost moves from commitment to actual.
Structuring an actuals ledger
An actuals ledger is a list of cost entries. Each entry needs enough fields to be placed in the budget and traced back to its source. A workable minimum is:
- Entry date and the period it belongs to
- Work package
- Cost type (labor or non-labor)
- Amount
- Source reference, such as an invoice number or timesheet ID
- Status (accrued or invoiced)
The next script builds a small ledger, rejects entries that do not match a known work package, and totals actuals per package and per period. It uses the figures from the project budget in this tutorial.
from collections import defaultdict
work_packages = {"Design", "Development", "Testing"}
ledger = [
{"date": "2026-09-30", "period": "2026-09", "package": "Design",
"type": "labor", "amount": 3200.0, "ref": "TS-0901", "status": "invoiced"},
{"date": "2026-10-31", "period": "2026-10", "package": "Design",
"type": "labor", "amount": 400.0, "ref": "TS-1001", "status": "invoiced"},
{"date": "2026-10-31", "period": "2026-10", "package": "Development",
"type": "labor", "amount": 4400.0, "ref": "TS-1002", "status": "invoiced"},
{"date": "2026-10-15", "period": "2026-10", "package": "Development",
"type": "non-labor", "amount": 600.0, "ref": "INV-221", "status": "invoiced"},
{"date": "2026-10-31", "period": "2026-10", "package": "Developmnt",
"type": "labor", "amount": 250.0, "ref": "TS-1003", "status": "accrued"},
]
by_package = defaultdict(float)
by_period = defaultdict(float)
rejected = []
for entry in ledger:
if entry["package"] not in work_packages:
rejected.append(entry)
continue
by_package[entry["package"]] += entry["amount"]
by_period[entry["period"]] += entry["amount"]
print("Actuals by package:")
for name, total in sorted(by_package.items()):
print(f" {name}: {total:.2f}")
print("Actuals by period:")
for period, total in sorted(by_period.items()):
print(f" {period}: {total:.2f}")
for entry in rejected:
print(f"Rejected {entry['ref']}: unknown package '{entry['package']}'")Running it gives Design 3600.00 and Development 5000.00, which match the actuals used in the variance example in the next chapter. The fifth entry has a typo in the package name. The script rejects it and reports it, instead of silently dropping the money or creating a new package called "Developmnt". Rejecting bad codes at entry time is cheaper than finding them at month end.
Cumulative actuals and the baseline
Variance analysis compares cumulative values. For each period, add that period's actuals to the running total, then compare it with the cumulative baseline for the same period. This is the same time-phased view you built in the previous chapter, with a second line added.
The script below computes cumulative actuals and compares them with an example baseline.
baseline_by_period = {
"2026-09": 3000.0,
"2026-10": 9000.0,
"2026-11": 14000.0,
}
actual_by_period = {
"2026-09": 3200.0,
"2026-10": 5400.0,
}
cum_baseline = 0.0
cum_actual = 0.0
for period in sorted(baseline_by_period):
cum_baseline += baseline_by_period[period]
if period in actual_by_period:
cum_actual += actual_by_period[period]
gap = cum_baseline - cum_actual
print(f"{period}: baseline {cum_baseline:.2f}, "
f"actual {cum_actual:.2f}, difference {gap:.2f}")
else:
print(f"{period}: baseline {cum_baseline:.2f}, no actuals yet")Note the if period in actual_by_period check. A period with no actuals yet is different from a period where actual spending was zero. Printing a zero for a future month would draw a misleading line on a chart. Keep future periods empty.
A low actual total does not mean the project is under budget. In the example, 8600.00 has been spent against 12000.00 planned by the end of October. That may mean efficient work, or it may mean work is behind schedule, or invoices have not arrived. Actuals alone cannot tell you which. That is why the next chapter pairs cost with progress.
Cutoff and timing errors
Cutoff is the date after which costs are assigned to the next period. Set it once, for example the last working day of the month, and apply it to every source.
Common timing errors:
- Unrecorded accruals. Work is done in one month and the invoice arrives in the next, so the first month looks cheap.
- Double counting. A cost is accrued, then recorded again when the invoice arrives. Reverse the accrual when you book the invoice.
- Late timesheets. Hours appear after you closed the period. Decide whether to reopen the period or book them in the current one and note the lag.
- Prepayments. An annual hosting fee paid in one month covers twelve. Spread it over the months it covers if your budget does so, or record it in the month paid if the baseline did. Match the baseline's treatment.
Corrections and the audit trail
When an entry is wrong, do not edit it. Add a reversing entry with a negative amount and then a corrected entry. The ledger then shows what was recorded, when it was fixed, and why.
ledger = [
{"ref": "TS-1003", "package": "Developmnt", "amount": 250.0},
]
# Reverse the bad entry, then book the corrected one.
ledger.append({"ref": "TS-1003-R", "package": "Developmnt", "amount": -250.0})
ledger.append({"ref": "TS-1003-C", "package": "Development", "amount": 250.0})
totals = {}
for entry in ledger:
totals[entry["package"]] = totals.get(entry["package"], 0.0) + entry["amount"]
print(totals)The output shows Developmnt at 0.0 and Development at 250.0. The net effect is correct, and anyone reviewing the ledger can see what happened. This matters most when someone outside the project, such as an auditor or a sponsor, asks why a number changed.
Common errors
- Recording in the wrong package. Costs end up in a package that looks overrun while the real overrun stays hidden. Review a sample of entries each period.
- Mixing currencies or tax treatment. Record invoices at the same basis as the budget, either including or excluding tax, and convert foreign amounts at a stated rate.
- Ignoring indirect costs. If the budget includes an allocated overhead, actuals need the matching allocation, or direct and indirect lines will not compare.
- Waiting for perfect data. A close estimate recorded on time beats an exact figure recorded six weeks late. Accrue your best figure and adjust when the invoice arrives.
- Overwriting history. Editing old rows removes the audit trail and makes earlier reports impossible to reproduce.
A period-end routine
A short routine makes the process repeatable. Run it at the end of each reporting period.
- Freeze the period and announce the cutoff date.
- Import timesheets and convert hours to cost with the agreed rates.
- Enter supplier invoices and expense claims.
- Add accruals for work done but not invoiced, and reverse last period's accruals that have now been invoiced.
- Check that every entry has a valid work package and a source reference.
- Total by package and by period, then compare with the baseline.
- Record open commitments separately.
Exercise
A contractor worked 30 hours in October at 80.00 per hour on the Development package. The invoice arrives in November. In which period and as what kind of entry do you record the 2400.00, and what do you do when the invoice arrives?
Show answer
Record 2400.00 (30 × 80.00) in October as an accrued cost against Development, because the work was done in October. When the invoice arrives in November, reverse the October accrual and book the invoice as an actual dated to the work period, or otherwise match it to the accrual so the cost is not counted twice.
Exercise
At the end of October, cumulative baseline spending is 12000.00 and cumulative actual spending is 8600.00. A colleague says the project is 3400.00 under budget. Name two things you should check before agreeing.
Show answer
Check whether work is behind schedule, so that less has been done than planned, and check whether accruals and invoices are missing, so that actuals are understated. Also acceptable: confirm that committed costs are not being ignored, or that the cutoff was applied consistently. Actual spending alone does not show whether the project is efficient.