how long did it take
Quanto tempo demorou a sua viagem?
How long did your trip take?
Quanto tempo demorou a escrever o seu livro?
How long did it take you to write your book?
Quanto tempo demorou para escrever a carta?
How long did it take to write the letter?