How to Offer Discounts Without Hurting Profits