How long does it take to treat a yeast infection using vinegar and yogurt?

Decades? This type of management is unlikely to achieve positive results, which is why i suspect you are asking the question. You need an antifungal preparation. Ask your doctor or pharmacist and stop fooling around with "natural" solutions.