how long to stay invested