Hello,
Welcome to the ehealthforum and I am really glad to help you out. Your concern is regarding the midcycle bleeding. Since you had an unprotected intercourse just two day prior to your periods but you have not provided any history of any unprotected intercourse prior to that, so the status of pregnancy is dicey. This bleeding seems like withdrawl bleeding due to sudden stoppage of the birth control pills, but it is important to know about the status of your pregnancy or miscarriage if any.
If you are pregnant then this bleeding raises the doubts of a miscarriage. However to differentiate this bleeding whether due to withdrawl effect of hormones of birth control pills or a miscarriage, I would suggest you to do a urine for pregnancy test or get your serum HCG levels estimated. The HCG (it is a hormone) levels rise only in pregnancy and its levels are raised even for a few days after a miscarriage. So HCG presence will confirm the status of your pregnancy.
Once you are clear about the status of your pregnancy, you should consult a gynecologist and start with birth control pills. Sudden stopping of the birth control pills can lead to bleeding within 3-4 days and before starting another pack of birth control pills, a gynecologistâs consultation is mandatory.
It is very difficult to precisely confirm a diagnosis without examination and investigations and the answer is based on the medical information provided. For exact diagnosis, you are requested to consult your doctor. I sincerely hope that helps. Take care.