An infestation of flies can be extremely difficult to manage, especially because one female fly can lay hundreds of eggs at one time. In addition, it takes just one day for these eggs to hatch into maggots. It can take about 36 hours for a maggot to turn into a fly.