Here is the formula I am using in my Javascript code:
total = parseFloat(unit * rate) +
parseFloat(rateamount) +
parseFloat(((unit * rate) +
(rateamount)) * (tax/100));
The values for the variables are as follows:
unit = 5
, rate = 10
, rateamount = 10
, tax = 10
.
Currently, the formula is returning a result of 561
, which is incorrect.
If you have any suggestions or solutions, please feel free to share them. Thank you!