Have you had any diagnostics done? Is your only symptom long cycles? Long cycles can be normal -- I have 45-day cycles and all my tests came back normal.
Also, how old are you? A few cycles is not that long. Even for someone under 35, the norm is up to 6 months. Are you charting? Are you using a fertility monitor?
I agree with your doctor that you shouldn't be on metformin unless necessary. It may be a coincidence that it "worked" the first time, unless you're leaving out diagnoses that would indicate its use.