What are stock prices based on

How are stock prices fundamentally determined?