Can I buy clomid over the counter??

And for this doni have to be ttc for over a year?

How does this work?