Maybe the original question was about time i.e. when in the future the end of solar system will be? The Earth is likely to be consumed by the Sun in 5bn years but what about the outer planets and maybe by then we can engineer the orbit of planets to move the Earth and the inner planets to suit...