How long do i wait before taking a pregnancy test after a miscarriage

I had a miscarriage at the end of October from the 30th to the 2rd then had a period during it. I am now going on day 34 no period and had sex maybe 4x during the month 2 of these tines we're during high fertility days and in just wondering if the lack of period could be due to the miscarriage but even after my son was born 7yrs ago I have always been very regular 28days off and 7on I just wanted advice