Skip to main content

Method of calculating and rounding values for Invoices

There are two features: Totals Calculation and Taxes Calculation in the Invoices Templates section that help to avoid rounding issues with float numbers and missing cents.

For instance, if you have the next parameters:

  • calls with the cost: $0.005 (the tax is $0.00105)
  • package with activation fee: $ 7.1144 per month (the tax is $1.494024)
  • package with activation fee: $ 5.1144 per month (the tax is $1.074024)
  • package with activation fee: $ 3.1144 per month (the tax is $0.654024)
  • tax 21%

And you select respective options:

Round then sum and Percent from the total amount​

Then it rounds specified above values in the Invoice just like that:

  • calls - $0.01
  • packages - $7.11, $5.11, $3.11

After it calculates the Total Amount ($0.01+$7.11+$5.11+$3.11) = $15.34, the total amounts are as follows:

  • amount without tax - $15.34
  • tax - $3.22 (15.34*0.21)
  • amount including tax - ($15.34+$3.22) =$18.56
Sum then round and Sum of individual taxes​

It takes specified above not rounded values and calculates the total amount ($0.005+$7.1144+$5.1144+$3.1144) = $15.3482.

After it rounds a received sum ($15.3482), the total amounts are as follows:

  • amount without tax - $15.35
  • tax - $3.22 (1.494024+1.074024+0.654024+0.00105)
  • amount including tax -($15.35+$3.22) = $18.57

Therefore, it's less than $0.01 cent from the total amounts. Totals may not match due to the selected option of the rounding method.