city of flies need help asap

A city of flies has a population that doubles once every day. The flies go extinct from overpopulation on the 30th day. On which day was the fly population halfway from extinction?