How does affect time it takes earth and the other planet to go around the sun?