Breakeven point for intraday and expiry

I am trying to understand upstox options strategy analysis chart . however I am unable to calculate the correct breakeven point for intraday or today’s Pnl . Expiry day breakeven is working accurately. could you please let me know the calculation or formula that we utilize to calculate breakeven for intraday also the API to fetch this real time data which has required parameters to calculate that breakeven .