added analyzing discount in cart calculation