It takes the Earth approximately 365.25 days to complete one orbit around the Sun. This is why we have a year.