In a million years 2 stars [yep I said stars not planets] will come to our solar system. One of the stars is known as Nemisis . The other Gliese 710. We could survive because probally before that the sun energy would push us away from the solar system but we will be dead unless earth use it own energy but then in a billion years earth will be a gas planet probally.