how to calculate brokerage charges for trading