Ask an AI chatbot "how much do I owe?" or "what's the total?" and it will give you a number. It will sound sure of itself. The number may well be right. The problem is that nothing in how the answer was produced made it right — and for prices, totals and tax, "probably right" is not good enough.
Why an AI guesses numbers
A large language model — the engine behind ChatGPT, Gemini and Claude — writes its reply one piece at a time, choosing what is most likely to come next. That is why it is so good at sounding natural. It is also why a figure it writes is a prediction of what the answer looks like, not the result of adding anything up.
Often the prediction is correct. Sometimes it is a perfectly reasonable-looking number that is wrong, and it arrives in exactly the same confident tone. For a business, that second case is the one that matters:
- a quote that is £40 too low, sent to a customer in your name;
- a running total that drifts away from what is actually in your records;
- a tax estimate that nobody can trace back to where it came from.
You cannot fix this by asking the AI to "be careful" or "double-check". You fix it by not asking the AI to do the sum at all.
The fix: the AI picks, the code calculates
The pattern is called tool calling, and it splits the job in two. The AI is given a short list of things it is allowed to do — "show this week's totals", "add a day's takings", "check Thursday's diary". When someone asks a question, the AI's only job is to pick the right tool and fill in the details. Ordinary code then runs that tool against your real data, does the arithmetic, and hands the result back. The AI just puts it into a friendly sentence.
An AI is good at understanding what someone means. Code is good at being exactly right, every time. A well-built assistant uses each for the job it is good at — and never asks the AI to be a calculator.
A worked example from my own build
I built this pattern into an open-source income and tax tracker for UK self-employed workers — my own project, not a client one. You log each day's income and expenses, and it keeps a running estimate of what you will owe at the Self Assessment deadline. It also has an AI assistant you can simply ask: "what are my totals so far?", "what did I earn in week 23?"
The AI in that chat window (Google's Gemini) never adds anything up. It reads the question, picks one tool from a short list, and Python does the rest: it reads the saved entries from the database, works out income, expenses, profit and the tax estimate, and passes those exact figures back to be put into a sentence. If the AI wanted to make up a number, there is nowhere in the flow for it to put one.
That does not make it perfect, and it is worth being honest about where it went wrong. During testing, an early version treated money paid out as income — the AI had picked the wrong tool for the sentence. Because the mistake was in the choice, not hidden inside a made-up sum, it was easy to spot and fix in the instructions. The tax maths itself sits in ordinary Python with automated tests that check it, including the awkward cases right at the edge of a tax band.
The kind of number you can't afford to guess
Tax is a good example of why this matters. The figure does not rise smoothly: in the 2026/27 tax year, a self-employed person in England, Wales or Northern Ireland pays nothing on the first £12,570 of profit, then 20% Income Tax plus 6% Class 4 National Insurance up to £50,270, then 40% plus 2% above that. The chart below shows the estimates the tracker's code produces at five profit levels.
Notice the jump in the last bar. Going from £50,270 to £60,000 adds £4,086.60 of tax on £9,730 of profit, because every pound above the line is taxed at 42p instead of 26p. That is exactly the sort of step an AI writing a plausible-looking number can smooth over without anyone noticing. Two of these figures (£9,802.00 and £13,888.60) are checked by the tracker's automated tests on every change.
Where this matters in your business
You may never build a tax tracker, but the same split applies anywhere an AI talks to your customers about money, time or availability:
| Customer asks | What the AI should do | Where the answer must come from |
|---|---|---|
| "How much for a boiler service?" | Recognise it as a pricing question | Your actual price list |
| "Can I book Thursday at 3pm?" | Pick the "check diary" action | Your live calendar |
| "What's my total for three nights?" | Fill in the dates and guests | Your rates, worked out by code |
| "Have I been refunded?" | Look up the right order | Your payment records |
In every row, the AI's job is understanding the question. The answer itself comes from something you control and can check. This is how our own AI receptionist handles bookings: it works from your real availability rather than guessing a free slot.
Three questions to ask before you buy
- "Where do the numbers in its answers come from?" The answer you want is "your price list / your calendar / your records, through code". "The AI knows your prices" is not it.
- "What does it do when it can't find the answer?" It should say so, or pass the customer to a person — never fill the gap with a likely-sounding figure.
- "Does it confirm before it saves or sends anything?" A booking, a quote or a refund should be checked by the customer or by you before it becomes real.
None of this needs you to be technical. It only needs the vendor to have decided, on purpose, which parts of the job the AI is allowed to do. If you want to talk through which parts of your own customer conversations are safe to automate, that is a good first conversation to have.
Method note: the tax figures are the tracker's own estimates using 2026/27 rates for England, Wales and Northern Ireland (personal allowance £12,570; Class 4 National Insurance 6% and 2%, per GOV.UK). They ignore other income, the personal allowance taper above £100,000 and Scottish rates. They illustrate the calculation and are not tax advice. The screenshots use demo data for a made-up person.