Sub topic 10
Compare Planned Time with Actual Time
Totals by category tell you where your hours went. They don't tell you whether that is where you meant them to go. This chapter adds the second half of the comparison: a written plan for the week, set against the log you already built.
This chapter assumes you have a cleaned log in the CSV format from the earlier chapters, with date,start,end,category,activity,energy columns. It also assumes you can compute hours per category, by hand or with the script from the totals chapter. The Python example is optional, and a spreadsheet works just as well.
Why a plan is needed
A time audit finds the gap between how you think you spend time and how you spend it. If you only look at actuals, you can see that meetings took 11 hours. You can't tell whether that is a problem. If you had planned 12 hours, it is on target. If you had planned 6, it is a large overrun.
The plan is your expectation made explicit. Without it, you tend to judge the log afterward with hindsight, and almost any result looks plausible.
Write the plan before the week starts
Capture the plan before you log the first entry. If you write it after seeing some data, you will unconsciously adjust it toward what happened.
Use the same categories as the log. Write one number per category, in hours, for the whole audit period. A weekly figure is enough at this stage. Per-day plans give more detail but take longer to write and to compare.
Here is a plan file for a week with four categories.
category,planned_hours
deep_work,15
meetings,6
communication,5
admin,3Two rules keep the comparison valid:
- Plan from your intentions, not from the calendar alone. A calendar shows meetings. It does not show the time you meant to spend on focused work.
- Plan only the time you will log. If you log work hours only, plan work hours only. Otherwise the totals measure different things.
Measure the gap
For each category you have a planned value P and an actual value A. Two measures are useful.
- Absolute gap:
A - P, in hours. A positive number means you spent more time than planned. A negative number means less. - Ratio:
A / P, shown as a percentage. 100% means you hit the plan. 200% means you spent double.
Use both because each one hides something. An absolute gap of 1 hour means little on a 20-hour category but a lot on a 2-hour category. A ratio of 150% on a 1-hour category is a 30-minute difference and probably noise.
Here is the sample week:
| Category | Planned (h) | Actual (h) | Gap (h) | Ratio |
|---|---|---|---|---|
| deep_work | 15.0 | 8.5 | -6.5 | 57% |
| meetings | 6.0 | 11.0 | +5.0 | 183% |
| communication | 5.0 | 9.5 | +4.5 | 190% |
| admin | 3.0 | 4.0 | +1.0 | 133% |
Read the table by the size of the absolute gap first. Deep work is 6.5 hours short, and meetings and communication together are 9.5 hours over. The admin overrun is real but small.
Compute the comparison with a script
The script below reads both files and prints one row per category, ordered by the size of the gap. It builds on the totals script from the previous chapter. As before, it assumes no entry crosses midnight.
import csv
from collections import defaultdict
from datetime import datetime
def actual_hours(path):
totals = defaultdict(float)
with open(path, newline="") as f:
for row in csv.DictReader(f):
start = datetime.strptime(row["start"], "%H:%M")
end = datetime.strptime(row["end"], "%H:%M")
totals[row["category"]] += (end - start).total_seconds() / 3600
return totals
def planned_hours(path):
with open(path, newline="") as f:
return {row["category"]: float(row["planned_hours"]) for row in csv.DictReader(f)}
actual = actual_hours("time_log.csv")
planned = planned_hours("plan.csv")
categories = set(actual) | set(planned)
rows = []
for category in categories:
p = planned.get(category, 0.0)
a = actual.get(category, 0.0)
rows.append((category, p, a, a - p))
rows.sort(key=lambda r: abs(r[3]), reverse=True)
print(f"{'category':<15}{'planned':>9}{'actual':>9}{'gap':>9}{'ratio':>8}")
for category, p, a, gap in rows:
ratio = f"{a / p:.0%}" if p > 0 else "n/a"
print(f"{category:<15}{p:>9.1f}{a:>9.1f}{gap:>+9.1f}{ratio:>8}")Three details in this script handle edge cases:
set(actual) | set(planned)includes categories that appear in only one file. A category you logged but never planned still shows up, with a planned value of 0.- A planned value of 0 would cause a division by zero, so the ratio prints
n/a. For those rows, only the absolute gap is meaningful. - Sorting by
abs(gap)puts the biggest surprises first, whether over or under.
Check the totals before reading the gaps
Before you interpret any row, compare the grand totals. Add up the planned column and the actual column. If you planned 29 hours and logged 33, then every category cannot be on plan, and some of the gap is simply that you worked more than you expected.
If the actual total is much lower than the plan, you may have missed logging time. Return to the cleanup chapter and check for gaps in the log before concluding you did less. A shortfall in logged hours looks the same as a shortfall in real work, so rule out the logging problem first.
Interpret a gap
A gap has several possible causes, and each leads to a different fix. For each large gap, ask which of these applies.
- The plan was unrealistic. You planned 15 hours of deep work in a week with 11 hours of meetings. The calendar made it impossible, and the plan was wrong from the start.
- Time was taken by something else. Messages and meetings expanded into the space you had set aside. The plan was feasible but unprotected.
- Tasks took longer than estimated. Admin planned at 3 hours took 4. This is an estimation problem, and it is common for small recurring tasks.
- The log is wrong. Categories were assigned inconsistently or entries were missed. This is a data problem and not a behavior problem.
You can often tell these apart from the activity notes and energy scores. If deep work entries are short and scattered across the days, a fragmentation cause (cause 2) is likely. If they are long and few, the plan was probably unrealistic (cause 1).
Read gaps in pairs
Because the log covers a fixed number of hours, gaps in different categories are often linked. In the sample week, deep work is 6.5 hours under and meetings plus communication are 9.5 hours over. The extra time in those two categories came from somewhere, and deep work is the likeliest source.
Check this by looking at the log for days where a deep work block was planned but meetings or chat took its place. Many entries with communication between short deep_work entries point to interruption. A single long meeting that overlaps the usual focus slot points to scheduling.
The pairing also helps you decide which side to change. Reducing meetings might fix the deep work shortfall. Adding more planned deep work to a calendar that stays full would not.
Edge cases and cautions
- One week is a small sample. A holiday, a launch, or a sick day can distort a category. Mark unusual days in the log notes, and treat them as context. Do not generalize from them.
- Small categories are noisy. A 20-minute gap on a 1-hour plan is a 33% swing but a trivial amount of time. Set a floor, for example ignore gaps under 1 hour unless the ratio is extreme and the category matters to you.
- Unplanned categories are findings. If a category appears in the log with no plan (for example,
commutingorad_hoc_requests), you have found time you never accounted for. Report it separately from the over/under list. - Per-category gaps are not blame. The comparison measures the plan as much as it measures you. Consistent underestimation is useful information to fix in the next plan.
- Multitasking entries. If you logged a meeting during which you also answered messages, the category you chose determines which total is inflated. Be consistent with your rule from the categories chapter.
Record your findings
End the comparison with a short written note of what you found, one line per large gap, with its likely cause. For the sample week:
- Deep work: 6.5 h under. Likely cause: meetings filled the morning blocks planned for focus (cause 2).
- Meetings: 5 h over. Three recurring meetings were longer than the 6 hours I planned for them.
- Communication: 4.5 h over. Chat checks were frequent and short, spread across all days.
- Admin: 1 h over. Small estimation error. Low priority.
These notes feed directly into the decisions chapter, where you choose one or two changes. They are more useful there than raw numbers, because they record the cause and not only the size.
Exercise
Your plan was 10 hours of admin and your log shows 6 hours. The grand totals are 40 hours planned and 31 hours logged. What should you check before concluding you spent less time on admin than planned, and what is the gap and ratio for admin?
Show answer
Check whether the log is missing time, because the logged total is 9 hours below the plan and part of the admin shortfall may be unlogged entries. Review the log for gaps and fill them where you can, then recompute. As it stands, the absolute gap is 6 - 10 = -4 hours and the ratio is 6 / 10 = 60%.
Exercise
A category called commuting has 0 planned hours and 4.5 actual hours. What does the script print in the ratio column, why, and how should you treat this row?
Show answer
It prints n/a, because dividing by a planned value of 0 is undefined and the script guards against it. Treat the row as unplanned time. Only the absolute gap of +4.5 hours is meaningful. Report it as a finding, then decide whether to include it in next week's plan.