Tech

New app will track MSG bathroom wait

Ever wonder when to leave your seat at a sporting event to go to the bathroom?

The new Madison Square Garden and software partner SAP are weighing an app that would tell fans how long the line is at the nearest bathroom, SAP co-CEO Bill McDermott told The Post.

MSG, which opens Friday after a $1 billion renovation, and SAP over the next year plan on introducing “leading-edge technology” for the new Garden.

McDermott suggested that could include analytical software for management based on the “money ball” concept championed by the Oakland A’s that would help Knicks’ and Rangers’ brass improve their rosters.

SAP provides similar technology for the San Francisco 49ers.

In addition, SAP will join Coca-Cola, Kia Motors, Lexus, Delta Airlines and Anheuser-Busch as signature sponsors.

JPMorgan Chase sits above that group as the lone marquee sponsor.