Compute capital gains/losses based on your trades.