Add a supplied VAT rate to a net amount or recover the net amount from a VAT-inclusive total.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Add mode multiplies the net amount by rate ÷ 100 and adds the tax; remove mode divides a tax-inclusive amount by 1 + rate ÷ 100 and subtracts the recovered net. The rate is an input, not a live jurisdiction lookup.
Amount: 500 VAT rate: 20 Mode: add
Net Amount: $500.00 VAT (20%): $100.00 Gross Amount: $600.00
Invoices add VAT to net lines, receipts back tax out of inclusive totals, and international quotes test a supplied rate before confirmation.