Here is the main calculation formula for getting the discount and tax information for products. Put examples in and it came out with the same result in a calculator.