Calculating the amount of product