Investing in the market (index funds) for a time horizon of 20 years or more guarantees no loss of money, based on historical data.
"as time progresses and the time Horizons increases to 20 years there's not a single scenario where you lose money in 20 years"