Time is dilated hence the clock in the spaceship will be less/ slower than the stationary clock on Earth. Both clocks are synchronised and this experiment is used as evidence for Einstein's theory of special relativity. As seen in the formula:
Time in a ‘moving’ frame appears to go slower...