When can a doctor's pregancy test be accurate?

Immediately. Not sure what you mean by a doctor's test. If you mean a blood test, then it can detect HCG levels as low as 1 miu, which is generally detected only after implantation, which occurs somewhere in the range of six to twelve days after fertilization.