The stock market does something similar. It tries to figure out what is most likely to happen over the next 3-6 months, and then prices stocks accordingly. That's why we say that the stock market is a "forward-looking mechanism" or "discounting mechanism."