realized pnl formula