Functional Weave
Code in Python

finance.tax.remove-vat@1.0.0

README.md

312 bytes · view raw

# finance.tax.remove-vat

Retail prices are quoted gross. Taking 20% off a gross price is the classic
error: the VAT in a 120.00 gross price is 20.00, not 24.00.

The net is gross x 10000 / (10000 + rate), and the tax is whatever is left, so
net and tax always add back to exactly the gross with no stray penny.