It takes …

Look at this sentence:

It takes me 20 minutes to drive to work.

When we talk about how long we need to do something we say “It takes …”

It

to take

object pronoun / name

time

infinitive of verb

It

took

them

1 hour

to do

the test.

It

takes

us

1 week

to get

everything ready.

It

will take

New Orleans

a long time

to recover.

If we talk in general we do not use an object pronoun or name:

It

to take

time

infinitive of verb

It

takes

2 hours

to fly

from London to Rome.

Look at the question form:

Question word

Auxiliary

Subject

Verb

(object pronoun /name)

infinitive

How long

did

it

take

you

to cook

dinner last night?

How long

does

it

take

to make

a computer?

How long

will

it

take

them

to get ready?