Skip to content

removeTax

removeTax(totalWithTax, rate) → number · Financial

Calculate the original amount from a total that includes tax.

  • totalWithTax (required): the total including tax

  • rate (required): tax rate (e.g. 0.21 for 21%)

utlx
removeTax(121, 0.21)                     // 100.0 (remove 21% VAT from 121)

Released under AGPL-3.0.