Our solar system 4 to 5 billion years ago

Thats when the earth was created 

The earth will last only as long as the sun remains

Many nuclear reaction take place inside the sun 

Energy is produce from nuclear reaction

The sun will expand when nuclear reaction stop

After which the sun will become a red giant 

The red giant will also engulf the sun 

Which will bring about the end of earth 

According to experts the sun will continue to burn for about 5 billion more years