Earth is the 3rd planet from the Sun taking 365.25 days to complete one revolution. The Moon takes 29.5 days to revolve around Earth. These two periods are the basis for a year and a month respectively.