In a few million years, we’re going to have to leave Earth if we want to survive. But how long can we actually outrun extinction before the universe becomes uninhabitable to us?