The Realized P&L is calculated based on the actual transaction values post adjustments. For example, in the example from the blog, the final profit was 12096−11916=180.
To get complete understanding on Unrealized P&L Adjustments due to strike price change or quantity change – Click here