It takes the earth a little more than 365 days to travel around the sun.
According to the sentence, I think the structure of it like the following:
- It = Preparatory "it"
- takes = Verb
- the earth = Indirect object
- a little more than 365 days = Direct object
- to travel around the sun = Subject
If there is something wrong, please explain it to me.