Relativity, Twin Paradox, Lorentz Transformations.
calculate proper times! Then when the speed of the spaceship decreases until it disappears, the distances traveled (that traveled by the spaceship with respect to its frame and that traveled by the Earth always with respect to the frame of the spaceship) expand (again due to the Lorentz