Birth Control and pregnancy

Patient: I am on the depo birth control shot and I was on antibiotics (z pack) from 7/20 through 7/24. I was told that my birth control will not work while on birth control. If I had sex on 7/24 how soon can I take a pregnacy test?

Symptoms: No symptoms