I invested most of my salary for 7 years and had enough to retire at 29. My best tips: start young, take risks and don’t settle in expensive cities.