The word "need" should never be said in this context. Maximizing expected value of the stock price through whatever means necessary is all that matters in this context.
There is no requirement to meet profitability within a human lifetime. The timescale is effectively infinite, in many cases, and particularly the highest value cases that professional investors focus on. See Amazon, see NYC apartment rental costs versus purchase costs, etc.
What's the simple formula for valuing a company? Nonsense, no simple formula should ever exist, if the markets are functioning properly.