Answer: 5billion years
Explanation: The sun produces energy through radioactive fusion reaction.
Nebula theory states that the gaseous particles of the Earth collapsed as a result of its own gravity which continuously lead to fusion reaction for the production of nuclear energy.
The Core of the Sun is that area up to 25% from the radius of the sun,here the pressure here range up to 250million atmosphere containing mainly hydrogen which gets converted in Helium molecule. The core is the center for energy production accounting for more than 98%, nuclear energy is transmitted at about 4.3million metric tons per second.