Masar-Fintech

Worked exampleAI in finance work

A number from an AI tool: five checks before you rely on it

A number produced by an AI tool needs five checks before it is used, and in this example matching it to the system revealed a duplicated invoice of EGP 36,000.

  • Written by Mahmoud Sabry
  • Published
  • Last updated
  • Reading time 5 min read
  • Checks Check lines recalculated by script Editorial policy

The problem: a quick figure looks right and differs from the system by EGP 36,000

The financial controller of a trading company in Cairo needs one figure for the treasury meeting: total supplier balances overdue by more than 60 days. The accountant exports the payables ageing report, loads it into the company's approved AI tool and asks for the total.

The tool returns EGP 1,184,000 across 46 invoices. The figure is close to expectations and stated with confidence. The payables ageing report in the ERP system, however, shows EGP 1,148,000 across 45 invoices.

Table 1

The tool's figure is EGP 36,000 and one invoice above the system

EGP, balances overdue by more than 60 days, hypothetical company

A table comparing the tool with the system: total 1,184,000 against 1,148,000, a gap of 36,000; invoice count 46 against 45, a gap of 1.
CheckToolSystemDifference
Total (EGP)1,184,0001,148,00036,000
Invoice count46451

Source: Illustrative calculation from hypothetical data.

Note: The whole gap is one invoice that appeared twice in the exported file.

An AI tool speeds up the work but does not take responsibility

The tool is fast at adding, sorting and summarising, but it can read a row twice, misread a figure or skip a row without warning. Its answer comes with the same confidence whether it is right or wrong.

Once the figure reaches the controller, it is the accountant's figure. So the result is reviewed with the same checks applied to a new colleague's work before it goes out in the team's name.

The five checks, in order

  1. Match the total to an independent system figure: 1,148,000 against 1,184,000. Without a ready report, use the payables balance in the trial balance or the largest supplier's statement.
  2. Count the rows: 46 against 45. A different count means a duplicated or missing row; the same count with a different total means a misread amount.
  3. Recalculate a sample: three invoices, the largest, the oldest and one at random, aged from the due date, not the invoice date.
  4. Compare with last month and explain the movement.
  5. Record the source, the date and the count in the message itself.

Here the first two checks found the error: one invoice of EGP 36,000 appeared twice because it fell at the end of one page and the start of the next in the export.

That is why the tool should be asked for the list of invoices it added, with their count, not only the total. A list can be compared row by row; a total alone does not show where the error is.

Comparing with last month makes the figure defensible

Overdue balances were EGP 1,020,000 last month and are 1,148,000 now, an increase of 128,000. The whole increase comes from two invoices from the raw materials supplier: 70,000 and 58,000.

Table 2

The EGP 128 thousand rise in overdue balances comes from two invoices from one supplier

Balances overdue by more than 60 days, EGP thousand, last month to this month

A bridge from last month's overdue balance of 1,020 thousand to 1,148 thousand: an invoice of 70 thousand and an invoice of 58 thousand.
ItemEGP thousand
Last month1,020
Invoice A70
Invoice B58
This month1,148

Source: Illustrative calculation from hypothetical data.

The message that goes out after the checks is two lines: overdue by more than 60 days, EGP 1,148,000 across 45 invoices, agreed to today's payables ageing report in the system; the increase on last month of 128,000 comes from two raw materials invoices.

It carries the source, count, date and cause, so anyone can review it in a minute.

Common errors

  • Sending the total without matching it to the system: a figure EGP 36,000 too high goes out. Correction: identify the independent control figure before using the tool.
  • Asking the tool for the total only: the error cannot be located. Correction: ask for the list of rows and their count with the total.
  • Loading confidential data into an unapproved public tool: staff names or supplier bank details leave the company. Correction: use only the approved tool and remove what it does not need.

How to check your work

  1. Match the total to a system figure that did not pass through the tool.
  2. Match the row count; the difference must be zero.
  3. Recalculate three invoices by hand in Excel.
  4. Explain the movement on last month with figures before sending.

Limits of the method

The checks catch errors in adding, reading and duplication, but not errors in the exported data itself, such as an invoice recorded with the wrong due date in the system. They do not replace the company's policy on tool use and data protection.

Frequently asked questions

Is it enough that the tool's figure is close to what I expected?

No. The wrong figure in this example was very close to the right one, and the gap appeared only when matched to the system.

What if the system has no ready report with the same figure?

Use the nearest independent figure, such as the account balance in the trial balance or the largest supplier's statement.

Why take the sample from the largest and oldest items?

The largest affects the total most, and the oldest exposes an error in the ageing calculation.

Can the payables report be loaded into any tool?

Only into the company's approved tool, and only after removing data the tool does not need.

Terms in this article

EnglishArabicMeaning
Control totalرقم المطابقةAn independent total the result is compared with
Ageing reportتقرير الأعمارA report that spreads balances by how long they are overdue
Reasonableness checkاختبار المعقوليةComparing a figure with an earlier period and explaining the movement

Related lessons

Read next

Sources and notes

Figures and companies in the examples are illustrative and hypothetical, and do not refer to any real organisation.

Amounts are in whole EGP unless stated as thousands.

Educational content, not financial, tax or investment advice. Check the standards and rules in force before applying anything.

Share this article

Before relying on a number from an AI tool, five checks find the error in minutes. A worked example:

Share on WhatsApp Share on LinkedIn