Added X pnl calculation