modify the trading_fee_calculator function.