IF you assume that the baseball will reach it's maximum height as it crosses the highest point of the stadium, THEN you can generate some
However, it is possible that the batter will hit an extremely hit pop-up that
just barely makes it out of the stadium.
At the other extreme the baseball just misses the crest of the stadium and only reaches its maximum height some several hundred feet beyond the limits of the stadium.
At those extremes the baseball may not survive.
It is better to know how long the ball was in the air. That way you have