A timeline changes the risk

Your time horizon is how long until you expect to need money. Money needed soon has less time to recover from a market drop than money for a distant goal.