It's hard to say because everybody's different. Fungus stays around for a lot longer on some than it does for others. Your doctor should have a sound answer for you tomorrow.
I have that problem, and the leaflet with the prescribed medication advised possibly a year.
I've also had a knee replaced, but although the surgeon and nursing staff needed to know what medicines I am on, the medication didn't seem to affect the surgery.