If you’ve asked ChatGPT, Claude or Copilot to total a list, work out VAT or recalculate a ratio, and got a confident answer that was slightly off, this post is for you. It explains why it happens and the one instruction that fixes most of it.
Does this ring a bell? You paste forty invoice lines into the chat, ask for the total, and get a number that looks perfect. Two decimals, a tidy summary underneath. Then you check it in Excel and it’s out.
It’s a word predictor, not a calculator
A language model, the engine behind ChatGPT, Claude, Copilot or Gemini, does one core thing. It predicts the next piece of text, based on everything that came before.
That’s why it writes so well. It’s also why, on its own, it doesn’t calculate anything. When it gives you a total, it produces the text that looks most like a correct total. Most of the time that lands close. Close is not good enough in finance, right?
Same with facts. On its own, the model doesn’t look anything up. It answers from patterns it picked up in training, which is why it can quote you last year’s rate with a straight face.
The tools are there, but the model decides when to use them
Now the nuance, because this is where people get confused. The apps we use today are more than the bare model. ChatGPT has a data analysis feature, and OpenAI’s help page on data analysis says that for some tasks it writes and runs Python code. Claude can run code in a sandbox too, through its code execution and file creation feature.
Notice the word “some”. The model decides whether a task needs code. Sometimes it reaches for Python, sometimes it just answers. And from the outside, a guessed number and a calculated number look exactly the same.
My advice? Don’t leave that decision to the model.
Tell it to use code, every single time
The fix is one line in your prompt. Don’t ask “what’s the total?”. Ask “calculate the total with Python and show me the code”.
It feels pedantic. It isn’t. Prompting is clear communication, the same way you’d give a new junior very specific instructions in their first month-end. Vague request, creative answer.
Here’s the routine I’d use for anything with numbers in it.
- Switch the code tool on. In Claude, go to Settings, then Capabilities, and make sure code execution and file creation is enabled. In ChatGPT, upload your file and ask for the analysis, the data analysis feature takes it from there.
- Upload the file, don’t paste the numbers. Pasting forty lines into a chat adds a copy-paste risk on top of a prediction risk. Clear column headers, one row per record. The cleaner the input, the more reliable the output.
- Put the instruction in the prompt. Something like: “Use Python for every calculation. Don’t estimate. Show me the code and the result.”
- Open the code. ChatGPT lets you view the code behind an answer. Read it the way you’d review a junior’s working paper. Right columns? Right period? Did it quietly drop the credit notes?
- Tie one number back. Do yourself a favour and run a control total in Excel, a simple SUM on the same column. If the totals agree, carry on. If they don’t, you’ve just saved yourself an awkward email.
- Make the instruction permanent. Typing it every time gets old fast. Put it in your project instructions once, I explain how in Claude Projects for finance teams.
Code makes the number checkable
One honest warning. Code fixes the arithmetic, not the logic. If the model filters the wrong month or treats a credit note as an invoice, Python will calculate the wrong thing perfectly.
So why bother? Because now there’s something to review. A number the model guessed has no working behind it. With a script, every step is sitting there waiting for you, filters, columns, the lot.
That’s the same point I made about AI-picked audit samples. If you can’t show how you got the number, honestly? You don’t really have the number.
Let the model write and let the code count
Language models are super at words. Drafting variance commentary, summarising a contract, explaining a ratio to a board member who hates ratios. Use them for that, all day.
For numbers, make them hand the work to code, then check the code. That’s it!
AI won’t replace your judgement on the figures. It gives you a faster route to figures you can actually defend, as long as you tell it how to get there.
Have you ever caught an AI total that was wrong? What gave it away?
Building habits like this into a finance team’s daily work is exactly what the AI for Finance training is for.
Fotis Chrysochos, FCA, trains finance teams to use AI in their daily work. AI for Finance is a service of Forte Consultum Ltd.

Leave a Reply