YBX.

Research · · 简体中文

Why is tax on an AI-extracted invoice one cent off?

Before changing a digit, calculate tax two ways: round each line and add it, then round the tax on the combined base. A one-cent difference can arise even when every digit was copied correctly.

Copy the printed values first

Keep the printed line bases, tax rates, any printed line taxes and the printed total in separate fields. Ask the extractor to leave absent fields blank and label calculated values separately. Confirm the currency, discounts, rate groups and whether the prices already include tax before comparing totals.

Repeat the calculation on two small lines

Fictional invoice: two tax-exclusive lines of $0.06 each, a single illustrative rate of 10%, and amounts rounded to the nearest cent. Per line, $0.06 × 0.10 = $0.006, which rounds to $0.01. Two lines give $0.02 tax. On the combined base, $0.12 × 0.10 = $0.012, which rounds to $0.01. The difference is $0.01. Xero documents rounding each line before summing the tax.

Leave a review note that someone can verify

If the printed tax is $0.02, record “Printed 0.02 | Per-line check 0.02 | Combined-base check 0.01 | Difference explained if issuer rounds each line.” Verify the issuer’s method and the original digits. Where both checks disagree with the printed amount, flag the lines for review and preserve the original total. The example rate and precision serve only to illustrate the arithmetic.

Sources

Related reading