Ok.
The Sun's output is about 3.8 x 10^36 Watts. Since that's power and not energy, we divide both sides of E =mc^2 by 1/sec, giving us P=mc^2 / s, and solving that for mass gives us:
P / c^2 = mass / sec
or
3.8 x 10^26 / C^2 = 4.2 x 10^9 kg/s
Now when hydrogen fuses to helium, about .7% of the mass is converted to energy, so we divide the above number by .007 to determine the total mass involved, which comes out to:
604 x 10^9 kg/s or 313,000 years per earth mass.
The mass of the sun is known from orbital mechanics as 1.99 x 10^30 kg, dividing that by the consumption rate above gives us the time the hydrogen fuel will last if all of it could be fused. But it can't, only about 10% is usable fusion fuel.
So if we want to figure out how long the sun will last....
1.99 x 10^30 kg * 10% / 604 x 10^9 kg/s = 3.29 x 10^17 seconds = 10.4 billion years
Radio-carbon dating is supposed to indicate the sun is 5 billion years old, so we've got another 5 billion or so to finalize plans for your solar array before the Sun's output changes significantly.
See? Easy peasy!