Metformin

Does metformin help get pregnant with PCOS, if so how long would you have to be taking it for?