Calculates Discounts and stores data