Calculating Cost and Discounts