Many people worry about the possibility of the end of all life on our planet. However, the Earth is by far the most habitable planet in our solar system and there's no reason to expect that to change for hundreds of millions of years.
The Earth may become uninhabitable between 500 million and a billion years from now. That may seem a short time, when you compare it with the billions of years the Earth has evolved for. But compared with the length of time there have been humans on the Earth it's a very long time.
To get an idea of who may need to deal with this issue, the idea is, to look at the last billion years. And then think about where we or our evolutionary cousins might be after another billion years after that. First some background though.