Compute realised pnl