Calculating discounts and markups