How long befroe i get yeast infection shoud i take the pill

Patient: My dr gave my girlfriend a pill as she get yeast infections from antibiotics.. how long before she get it(y i) shuld she take the pill.. so that she dont get it.. the pill starts with a d…

Doctor: