(Combien de temps) did it take to find the theory ?
How long did it take to find the theory?
Réponse alternative : How much time did it take ...?
Remarque : préférez "long" ("long" = durée ; "much" = quantité.