Hi Dylan,
There is a real chance that Earth will be burned up before that when the Sun is in its Red Giant phase in about 7 billion years. Different models predict different things, but the Sun may get large enough to extend to the location of the Earth. In that case there won't be an Earth during the planetary nebula and remnant (white dwarf) stage. If the Earth does make it that long it will be in pretty sad shape. The planetary nebula might cause problems, but I think it will be a dead, rocky world at that point anyway, eventually cooling as the Sun cools.
Terry