When should I take a pregnancy test?

My last day of ovulation was yesterday 12/9 and my period is due 12/24. How many dpo should I wait to take a text? I had a miscarriage on Halloween and I didn't know I was pregnant. I'm really afraid of it happening again..