Skip to content

GalassoLuca/sales-taxes-problem

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sales taxes problem

This is my solution of XPeppers's sales-taxes-problem

Build and Run

npm install
npm test

Tax rounding

All taxes are calculated separately, therefore the amount is rounded up for each tax

Example with quantity = 1

price = 0.01
basicTax = 0.10
importedTax 0.05

taxAmount = roundUp( 0.01 * 0.10 ) + roundUp( 0.01 * 0.05 ) = 0.05 + 0.05 = 0.10

About

Sales Taxes problem

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%