More help on pnl statement

I want short 1 ce and 1 pe and control them with individual pnl. i need more help on pnl to square off one leg and let other go