To find the value of a stock, you need to calculate all of these future earnings (out to infinity!), and then use your own desired rate of return as a discount rate to find their present value. The infinite sum of these present values is the fair market value of the stock; or more accurately...
One should must remember 5 golden rules while investing in stock markets:
1. Follow a disciplined investment approach
2. DO not let emotions cloud your judgement
3. Have Realistic Expectations
4. Invest only your surplus funds
5. Monitor Rigorously