Modified Quantity calculation in TradeGood