Yeast infection on antiobiotics

I’m on antibiotics for a UTI, and now I’ve gotten a yeast infection. My doctor gave me a one time pill to take, but I don’t know if I should take it right now or wait. I have 6 more days on antibiotics ):