The planet will be here for billions of years to come. If you read the Buddhist cosmology you will understand.
Basically there are 4 phases of the earth lifecycle (in the text it's the galaxy).
1. Destruction - could be by fire, wind, earth or water.
2. The burning phase (for fire), and so on...