The death of our Sun is estimated to occur in about 5 billion years. Around this point, life on Earth will become uninhabitable. There will likely be life here right up until there’s not. Most humans will have left the planet many millions of years prior to this point. Also, the merging of the Andromeda and Milky Way galaxies will have started about 500 million years earlier.
