A fly’s lifespan is typically 21 days but, during that time, females can lay up to 900 eggs. Flies typically lay their eggs where there is organic or decaying material. When the weather starts warming and flies mature, you might also need to know how to get rid of flies on porch spaces. Especially when there are trash bins nearby.