It can take up to a month and a half to cycle a tank though a month is generally more common. Patience is definitely a virtue and you'll want it to guarantee your fish live longer than a few days. Ammonia and nitrites are literal poisons to fish so you'll want to wait for the bacteria that eat ammonia and nitrite to establish first.