Option expiry price calculation

The final closing price for the day is Weighted Average Price of the last 30 minutes of trading. You can read this post to know how Weighted Average Price is calculated.