LearnAI home

Ground Rules ยท Lesson 2

Why You Cannot Trust AI With Arithmetic

It predicts plausible text, and a plausible number is not a correct one. What to do instead.

What is actually happening when it gives you a total

Picture a colleague who has read every accounting textbook, every finance blog and every set of published accounts in existence, and who has an extraordinary sense of what a sentence about money usually looks like. Now picture that this colleague cannot add up, has never been told they cannot add up, and has never once been embarrassed about it.

That is roughly the situation. A language model works by predicting what text plausibly comes next. When you ask for a total, it does not open a ledger, run down the column and report the figure. It writes a sentence of the form "the total is", and then produces a number that fits comfortably in that space. The number is generated, not computed.

Most of the time it lands close. Close is the worst possible outcome, because close does not look wrong.

In plain English

Token:
The small chunk of text a model works in. Numbers get chopped into pieces, which is part of why digits go astray.
Plausible output:
Text that has the shape and tone of a right answer. Shape and correctness are entirely separate properties.
Silent failure:
An error that produces no warning, no error message and no visible symptom. The most expensive kind.
Tool use:
Some AI products can run a real calculator or write and execute code. That is a genuine improvement, and it still needs checking.

Three ways it goes wrong

It gets simple sums wrong, confidently. Not always, and not predictably. That unpredictability is the point. If it failed every time you would catch it immediately. It fails occasionally, in the same steady tone it uses when it is right.

It drops rows. Give it ninety transactions to summarise and it may summarise eighty-four. Nothing announces this. The subtotal simply comes out lower and looks entirely normal, because a smaller number is still a number.

It doubles rows. The mirror image, and rarer, and worse. A duplicated line inflates a total, and an inflated total in a VAT calculation or a set of management accounts is the kind of thing that gets noticed by exactly the person you least want noticing it.

None of these failures produce an error message. There is no red cell, no reference error, no warning triangle. The output looks like every other output. This is why the answer is process, not vigilance. You cannot spot these by reading harder.

The rule

Here it is, and it is the spine of everything that follows:

AI may help you find and structure the number. A spreadsheet, your accounting system, or your own hand does the arithmetic.

That division of labour is not a compromise. It plays to both sides. The tool is genuinely excellent at working out which rows belong in a calculation, what the formula should look like, and how to describe the result. It is unreliable at the one step that a spreadsheet has performed flawlessly since the 1980s. So let each do its job.

โŒ Weak prompt

Prompt

Here is my nominal ledger extract for March. What is total travel expenditure for the quarter?

Output

Total travel expenditure for the quarter is 14,382.67.

It is precise to the penny, which reads as authoritative. There is no way to check it except by doing the sum yourself, and it may have quietly missed six rows on the way through.

โœ… Good prompt

Prompt

My ledger extract is in Excel, rows 2 to 900. Column C is the nominal code, column E is the date, column G is the net amount. Give me a formula that totals column G where the nominal code is 7400 and the date falls in the quarter. Do not calculate the answer. Also tell me how many rows should match so I can check the count.

Output

A formula pointed at the exact columns and range, plus a second formula that counts the matching rows.

The spreadsheet does the arithmetic and gets it right every time. The count formula catches rows that quietly went missing. The AI did the part it is actually good at.

Checkpoint

Ask for the formula and the method, never the figure. If a number arrives in a chat reply and you cannot say which cell produced it, it is not a number yet.

Making it show its working

The point of asking for the method is that a method is checkable and a bare figure is not. You can read a rule, disagree with it, and test it on five rows. You cannot do any of that with the number 14,382.67.

Prompt you can copy: method before answer

Do not give me a total. Instead give me, in this order:

  1. Which rows you would include and which you would exclude, and the exact rule.
  2. Any rows you are unsure about, listed individually.
  3. A spreadsheet formula that applies the rule, referencing my actual columns.
  4. A second formula that counts how many rows the first formula covers. My columns are: [list them]. My data runs from row [2] to row [900].

That fourth item is the one people skip and the one that catches the quiet failures. If you expected 47 matching rows and the count says 41, you have found a real problem in ten seconds.

Prompt you can copy: catch a dropped or doubled row

I gave you [90] transactions. Before summarising anything, tell me how many transactions you can see, and list the first and last reference number in the set. Then group them by [category] and tell me the row count in each group. The group counts must add back to the total count. If they do not, say so plainly and stop.

It will not always obey that last instruction. That is fine. You are the one checking that the group counts add back, and now the counts are on screen where you can see them.

Some AI products can now run real code or a real calculator behind the scenes, and those are genuinely more reliable for arithmetic. They are still not your working papers. A figure you did not produce and cannot trace is not evidence, whatever produced it.

What good looks like

You asked for a rule. You read the rule and agreed with it. You put the formula in the sheet. You checked the row count against what you expected. You recalculated three awkward rows by hand: the biggest one, one that should have been excluded, and one credit note.

Total time: about four minutes. And now, when a partner or a client asks where the number came from, you have a real answer, which is the entire job.

Prompt you can copy: sanity check a figure you already have

I have calculated [describe the figure] as [amount] using this method: [describe your method in a sentence]. Do not recalculate it and do not give me a number. Instead list, most likely first, the ways this method could be wrong: rows that might be wrongly included or excluded, sign errors, date boundary problems, duplicates, and anything else. For each one, tell me the specific check I should run in my spreadsheet.

This is the tool at its best. It is not being asked to be right about a number. It is being asked to be imaginative about how a number could be wrong, which is a language task, and one it is very good at.

๐Ÿ“ Quiz

Question 1 of 4

What is a language model actually doing when it tells you a total?

Found this useful? Pass it on.