Found the formula in the following link. I can't understand with my knowledge. Can anybody explain me with an example?
profit = ExchangeA_sell * (1 - ExchangeA_fee) - ExchangeB_buy * (1 + ExchangeB_fee).
One more thing, Is this formula good for all exchanges? Cryptsy and Bter have calculated differently their net total. Bter sell offer is different from cryptsy sell offer. In Bter the trade fee is deducted just opposite to cryptsy in terms of buy and sell currency?