$ Inside the "function circumstance" you liquidate the portfolio at $t_1$ realising its PnL (let me simplify the notation a little bit) $begingroup$ Assuming that you will be Doing work for your financial institution, you can find a few unique P&Ls depending upon the function/ usage: At the end of https://www.youtube.com/watch?v=qMmsQ4kKgY4