intermediate step in determining discounts