Please don't judge :(

Long story short....
Posting as anonymous as im really embarrassed, Been in an 8 year relationship but sadly split up, I got drunk and stupidly ended up having sex with a man ive known for years whilst on the 2nd day of my period which was Saturday 15th August, i then got back with my boyfriend 3 weeks later, we had sex around the 6th of September, I have 40 day cycles and now I'm pregnant, according to clear blue tests I am 1-2 weeks which according to the instructions means weeks I concieved, my period was 14th August-18th august, I should of ovulated around 8th September-14th september I need to know who is likely to be the father and if it's possible to of become pregnant whilst on my period with 40 day cycles. Help anyone... please don't judge this is hard enough as it is :(