Infertility Doctor?

After how many months/years should I actively try with no luck, to contact a doctor about infertility? 😕