Miscarriage

Had a miscarriage between 4-5 weeks, bleeding lasted from the 15th-20th, I ovulated either the 30th or 31th . When can I take a early test? I only had sex on the 21st,22nd, 28th (I know that’s not enough) but you never know , last pregnancy bfp at 10dpo all my tests today were indents