Calculating discounts and tips