An interesting study if you are thinking market has run up a lot post covid and is overvalued now.
===========================
NIfty 50 - 4th Jan 2008 - 6274
Nifty 50 - 18th Jun 2021 - 15683
Number of Years - 13
Absolute Returns - 149%
CAGR - 6.32%😪
———————————————————
Nifty 50 - 1st Jan 1999 - 890
Nifty 50 - 18th Jun 2021 - 15683
Number of Years - 22
Absolute Returns - 1660%
CAGR - 14 %
===========================
For nifty to have 22 year long term CAGR of 14% for the period 1 Jan 2008 to 1st Jan 2030 (22 Years), Nifty should be at 1,10,000 on 1 Jan 2030.

Which means nifty should move from 15683 to 110000 in 9 Years, Which is a CAGR of 24 % 😍

Going purely based on numbers next 9 years is the best time to be in the market.