Pregnant two weeks before period due after chemical

Ca

Okay so I had a chemical in July

Found out today that I am PREGNANT

Thing is today is the last day of my ovulation and period is due in 2 weeks

How could this be. Has anyone ever concieved weeks before ovulation or maybe I got pregnant last month and thought bleeding was period??

Will post my app estimated ovulation in comments