Questions, questions 😏!

How long does it take for the sperm to fertilize the egg? And how long do you have to wait to take a pregnancy test?