It took Hank and Hope two years to build a Quantum Tunnel to enter the Quantum Realm and bring Janet back. They also needed a specific type of energy to stabilize the tunnel and navigate through the realm.