How long is it until the earth dies?

They predict that the earth should begin feeling the the effects of our Sun expanding as it exhaust its supply of hydrgen starting in about 900 million years or so. The earth could get some more time by moving away from the Sun as the Sun loses more and more mass. But, the end will come not long afterwards anyway.