How Zerodha Calculate Day's PnL for options. Please explain.

Hey, Want to know how Day P&L is calculated for Options. Suppose I sold 10 lot (Qty-500) of Nifty 19450 CE at 96 on 24/8/ and Partially close position by buying 7 lot (Qty-350) at 36 on 25/8. How the day’s PnL is calculated
Is this correct for 25/8.
Prev closing Price of the option = 74
Closed position Day’s PNL (Realised) = 350*(74-36) = 13300.

  • Open position Day’s PNL (Unrealised) = 150*(74-30{LTP}) = 6600
    Total day’s PNL = 19,900

Also what will happen if sold 1 more lot today and the Outstanding QTY is 200 (4 lot) How that will be incorporated in Day’s PnL?