How to calculate the cost of giving up a discount