Show the working

A script can give you a correct number and still leave nothing to review. Here is the working a reviewer needs, and how to make your script print it.

An answer is not a working paper

A script that prints one total asks the reviewer to trust it. A working paper does something different: it lets the reviewer check the total with a calculator, on paper, without running anything.

That difference matters more now that scripts and AI tools produce numbers quickly. If the reviewer has to rerun your script to believe the number, the working is missing. Rerunning is not review. It repeats the same logic with the same assumptions, and if an assumption is wrong it fails in the same silent way.

A reviewer who can see the source, the formula, the intermediate steps and the result can agree or disagree in a minute. A reviewer who sees only a total can accept it or ask you again. The first kind of review is cheap. The second kind is how teams lose confidence in scripts and go back to doing the whole thing by hand.

So build the working into the output from the start. It costs a few extra lines of code, and it is the difference between a number someone sends back to you and a number someone can sign off.

Four lines, always in this order

Every figure I hand over should come with four lines: source data, formula, intermediate steps, result. The order matters because it is the order a reader needs it in. First the inputs, then the rule, then the arithmetic, then the answer.

Take a simple example. Sales excluding tax is 100,000.00 and the rate is 10 per cent. The four lines look like this:

  1. Source: sales excluding tax 100,000.00
  2. Formula: tax = sales × 0.10
  3. Step: 100,000.00 × 0.10 = 10,000.00
  4. Result: total including tax 110,000.00

Anyone with a calculator can follow that in ten seconds. Anyone can also disagree at a specific point, the rate or the base, instead of arguing about the total.

The same four lines work for a provision, an accrual, a unit price or a variance. The wording changes; the order does not. If you cannot write the formula in one line, the calculation is probably hiding a decision, and the reader should see that decision rather than the result of it.

A bank reconciliation, shown in full

Here is a bank reconciliation as a worked example, with made-up figures, written out in full. Every line stays visible. Nothing is netted and hidden.

Bank reconciliation, worked example
Bank statement closing balance52,340.00
Less unpresented cheques3,120.50
Add deposits in transit1,780.25
Adjusted bank balance50,999.75
Ledger balance51,019.75
Less bank charges not yet recorded20.00
Adjusted ledger balance50,999.75
Difference0.00

The arithmetic, shown once: 52,340.00 − 3,120.50 + 1,780.25 = 50,999.75 and 51,019.75 − 20.00 = 50,999.75.

Each line should also say where it came from. The closing balance comes from a page of the statement. The unpresented cheques come from the list of unpresented cheques. The ledger balance and the charges come from the ledger report. With the source named, the reviewer can tick each line against the document instead of asking you where it came from. That is the point of the working: not that it is long, but that every line can be traced, and a difference of 0.00 can be confirmed rather than believed.

Make the script print the same working

The script should write these lines into its output, not only the final difference. If the only line it prints is the difference, the reader is back to trusting it.

from decimal import Decimal as D

bank = D("52340.00"); unpresented = D("3120.50"); in_transit = D("1780.25")
ledger = D("51019.75"); charges = D("20.00")

adj_bank = bank - unpresented + in_transit
adj_ledger = ledger - charges
print(f"Bank {bank} - unpresented {unpresented} + in transit {in_transit} = {adj_bank}")
print(f"Ledger {ledger} - charges {charges} = {adj_ledger}")
print(f"Difference {adj_bank - adj_ledger}")

It prints:

Bank 52340.00 - unpresented 3120.50 + in transit 1780.25 = 50999.75
Ledger 51019.75 - charges 20.00 = 50999.75
Difference 0.00

That block is the whole program: source data, both adjustments, both lines of arithmetic and the difference. The output of the script is then a working paper, not a single number.

To run it yourself, download bank-rec-demo.csv, the same made-up figures as a file, and bank_rec.py, which reads that file and prints the three lines above. Put both in one folder and run python bank_rec.py.

The same idea in Excel: keep each step in its own cell with a label beside it, instead of one long formula. A labelled cell can be checked by clicking it, and the reviewer sees the intermediate figure. A nested formula that returns 0.00 tells the reader nothing about how it got there.

One caution: print the numbers you actually used, not a rounded display of them.

Check your own files

A short checklist before anything leaves my desk.

  1. Does every total have a source next to it, meaning a statement page, a report name, a file and a filter?
  2. Can a colleague recompute it with a calculator from the lines you gave, without opening your script?
  3. Does your script print its steps or only the answer?
  4. Are the printed numbers the numbers used, or a rounded display of them?
  5. If the difference is not zero, does the working say where it comes from, or does it just stop at the difference?

If any answer is no, the file is not finished. It is a number, not a working paper.

The calculators on this site print every step. The invoice check re-adds an invoice line by line, and the tax calculator shows each rounded step of adding or removing tax. Compare your own output with them, or use one to check a line that does not tie. Pick one figure from last month's file and try it.