I've been hearing these talks that the sun will run out of hydrogen in 4.5 to 5 billion years from now. My question is, how did we arrive at this estimate. Is it based on the mass or something? It would be good if you can show me the mathematical calculations. --thanks.