Calculation of Cash Discounts