Calculates discount amount off an order.