Sub topic 11
Reviewing Estimates Against Actual Time
This chapter assumes you can already write a definition of done, make a baseline estimate, and set a self-imposed deadline with a buffer, as covered earlier in this tutorial. Here you close the loop. You compare what you predicted with what happened, and you use the gap to set better deadlines next time.
Why a review loop matters
A self-set deadline is a prediction. Like any prediction, it improves only when you check it against the outcome. Without a check, the same biases repeat. The planning fallacy keeps your estimates low, and a fixed 25% buffer may be too small or too large for the kind of work you do.
The review loop has four steps:
- Estimate the task before you start, and write the number down.
- Track the actual time while you work.
- Compare the two when the task meets its definition of done.
- Adjust the next estimate or buffer using the result.
What to record
Keep the log small enough that you will actually maintain it. A useful record for each task has five fields:
| Field | Example | Why it matters |
|---|---|---|
| Task and definition of done | "Draft report, all sections written" | Keeps you from comparing against a moving target |
| Estimated hours | 5 | The baseline, before any buffer |
| Actual hours | 6 | Focused time spent, not elapsed days |
| Task type | "writing" | Lets you find patterns by kind of work |
| Note on the gap | "Waited two days for data" | Separates causes you can fix from noise |
Record the baseline estimate, not the padded one. If you log the number after the buffer, you cannot tell whether the buffer was needed. Also record focused hours, matching the unit you used to build the deadline. Elapsed calendar time mixes in interruptions, which is a different question.
Measuring the gap with a calibration ratio
The simplest summary of your history is a calibration ratio: total actual time divided by total estimated time. A value above 1 means your estimates run low. A value below 1 means they run high.
def calibration_ratio(history):
"""history is a list of (estimated_hours, actual_hours) pairs."""
total_estimated = sum(estimated for estimated, _ in history)
total_actual = sum(actual for _, actual in history)
return total_actual / total_estimated
history = [(2, 3), (5, 6), (1, 1.5)]
print(round(calibration_ratio(history), 2))The three tasks total 8 estimated hours and 10.5 actual hours, so the script prints 1.31. On average this person's tasks take about 31% longer than predicted.
Why totals and not an average of per-task ratios
The function divides sums instead of averaging each task's own ratio. The two methods give different answers, and the totals version is usually the better choice. A 1-hour task that takes 2 hours has a ratio of 2.0. A 20-hour task that takes 21 hours has a ratio of 1.05. Averaging those ratios gives 1.53, which overstates the problem, because the small task contributes one hour of error and the large task contributes one hour too. Dividing totals gives 23 / 21, about 1.10, which reflects the hours you actually lost.
Using the ratio to adjust a deadline
Multiply a new baseline estimate by your ratio before you pad it. With a ratio of 1.31, a 10-hour baseline becomes about 13 hours of expected work. You then apply a buffer for variation around that expected value.
The self_deadline function from the previous chapter takes a buffer parameter. You can fold the ratio in like this:
from datetime import date, timedelta
from math import ceil
def self_deadline(start, estimate_hours, hours_per_day=4, buffer=0.25, ratio=1.0):
"""Return a calendar-day deadline from a calibrated estimate plus a buffer."""
calibrated_hours = estimate_hours * ratio
padded_hours = calibrated_hours * (1 + buffer)
days_needed = ceil(padded_hours / hours_per_day)
return start + timedelta(days=days_needed)
print(self_deadline(date(2026, 3, 2), estimate_hours=10))
print(self_deadline(date(2026, 3, 2), estimate_hours=10, ratio=1.31, buffer=0.1))The first call uses the original settings: 12.5 padded hours, 4 hours per day, 4 days, so the deadline is 2026-03-06. The second call uses the ratio and a smaller buffer: 13.1 calibrated hours, 14.41 padded hours, 4 days, and the same deadline of 2026-03-06.
That second result shows the point of calibration. Once the ratio captures your typical underestimate, you can shrink the buffer. The buffer then covers only the variation that remains. This matters for Parkinson's law, because a smaller buffer leaves less slack for work to expand into.
Reading the pattern, not just the average
A single ratio hides structure. After you have a dozen or more entries, group them by task type and look at three things.
- Bias by type. Writing tasks may run 1.5 times over while routine email runs close to 1.0. Use a separate ratio for each type with enough data.
- Spread. Two people can share a ratio of 1.3. One is always within 10% of it. The other swings between 0.7 and 2.5. The second person needs a larger buffer even though the average matches.
- Direction of error by size. Many people underestimate large tasks and overestimate small ones. If that is your pattern, a single ratio will be wrong in both directions.
A quick way to measure spread is to compute the ratio for each task and look at the smallest and largest values:
def ratio_range(history):
"""Return (lowest, highest) per-task actual/estimated ratio."""
ratios = [actual / estimated for estimated, actual in history]
return min(ratios), max(ratios)
history = [(2, 3), (5, 6), (1, 1.5), (4, 3), (8, 14)]
low, high = ratio_range(history)
print(f"low={low:.2f} high={high:.2f}")This prints low=0.75 high=1.75. A range that wide says your estimates are unreliable for some tasks. In that case, use the notes field to find what drove the 1.75 case before you adjust the average.
Separating estimate error from scope error
Not every overrun is an estimating mistake. Before you change your ratio, ask what caused the gap. Three causes call for different fixes.
- Estimate error. The work was what you thought it was, and it took longer. Fix this with the ratio.
- Scope change. The definition of done grew while you worked, for example "add one chart" became "add four charts." Fix this by rewriting the definition of done before you start and recording changes as new tasks.
- External delay. You waited on a person or a system. Do not fold this into your ratio. Track it in the notes, and handle it by starting dependent tasks earlier.
If you feed scope changes and waiting time into the ratio, you will inflate every future deadline for reasons unrelated to how well you estimate. That brings back the slack the earlier chapters worked to remove.
Underruns count too
If a task finishes well under the estimate, that is data. It could mean your estimate was padded, or it could mean the deadline created useful pressure and you worked with more focus. The two readings lead to different actions.
- If tasks of this type consistently finish under the estimate, lower your baseline for them.
- If the task finished early only when the deadline was tight, keep the deadline and note that the pressure worked.
- If you finished early by cutting the definition of done, count it as a quality problem, not a success. Check the work against your original criteria.
How much data is enough
You do not need many entries to start. Five to ten completed tasks give a rough ratio. Treat it with caution at that size, because one unusual task can move it a lot. A practical approach:
- With fewer than five entries, keep your default buffer and only log.
- With five to ten entries, apply the overall ratio and keep a moderate buffer.
- With more than ten entries, split by task type where each type has at least three or four entries, and shrink the buffer where the spread is small.
Also weight recent history more heavily if your skills or tools have changed. A ratio from a year ago, before you learned a new tool, may no longer describe you.
A short review routine
Set a fixed time for review so it happens. A weekly ten-minute session is enough for most people.
- Mark which tasks met their definition of done this week.
- Enter estimated and actual hours for each.
- Write one line explaining any gap larger than 25%.
- Recompute the ratio, overall and for the types with enough data.
- Choose one change for next week, such as a different buffer for one task type.
Changing one thing at a time lets you see whether the change helped. If you change the ratio, the buffer, and the daily hours together, you cannot tell which one improved your results.
Common errors in review
- Logging after the fact. Writing the estimate after finishing biases it toward the actual result. Record it first.
- Skipping unfinished tasks. If you abandon a task that ran long, leaving it out makes your history look better than it is. Log it with the hours spent and a note.
- Treating the ratio as a target. A ratio of 1.0 is not the goal. Consistent, predictable results with a small spread are the goal.
- Over-correcting after one miss. One bad week should not rewrite your numbers. Wait for a pattern.
- Mixing units. Do not compare estimated focused hours with actual elapsed hours.
Exercise
Your log has these (estimated, actual) hours: (3, 4), (6, 9), (2, 2). What is the calibration ratio, and what calibrated estimate would you use for a new 8-hour baseline before adding a buffer?
Show answer
Total estimated is 3 + 6 + 2 = 11 hours and total actual is 4 + 9 + 2 = 15 hours, so the ratio is 15 / 11, about 1.36. The calibrated estimate is 8 × 1.36, about 10.9 hours. You would then apply a modest buffer to that figure, not the full original buffer, because the ratio already corrects the consistent bias.
Exercise
A task estimated at 4 hours took 9 hours. Your notes say you waited 3 hours for a colleague's review and that you added two extra sections that were not in the original definition of done, which took 1 hour. How many hours should you use for the estimate-versus-actual comparison, and why?
Show answer
Use 5 hours. Subtract the 3 hours of external waiting, because it is not working time, and the 1 hour of added scope, because the work being measured is no longer the work you estimated. Log the waiting and the scope change in your notes as separate causes, and handle them by starting dependent work earlier and rewriting the definition of done before you begin.