How long does it take for a male with untreated chlamydia to become infertile?

Days. If it's going to cause a problem, it would be merely days after the infection was cleared that one would see fewer or no sperm in the semen.