When do I get pregnant irregular period

I was on birth control and messed up mg pills I had my period on august 1st ended on 5th with the pills but I messed up my pills and today I got my period which is the 18th I'm planning to be birth control free after this period ends cause I'm planning to get pregnant when should I have sex since it's irregular cause of the pills