GustavoFernandes / order-splitter

https://gustavofernandes.github.io/order-splitter/
MIT License
3 stars 3 forks source link

Tax percentage is incorrect. #26

Closed nlanglo1 closed 7 years ago

nlanglo1 commented 7 years ago

The calculated tax rate is off slightly due to fees not being included in the subtotal (fees should be taxed.)

GustavoFernandes commented 7 years ago

@nlanglo1 It appears that if I change the tax percent calculation to be tax / (subtotal + fees), the totals of everyone's costs and the actual order total aren't equal anymore. How do you mean "the calculated tax rate is off slightly"?