Updated sales tax calculation logic.

If we have 2 products in the inputs {2 bags of rice}