Confused

I had my period last month on the 23rd and it lasted like 4-5 days. My boyfriend and I had sex after 2 days. It’s been a while like 2 years since I have been with a guy. And now I have spotting on my underwear and my fertile days will be in 3 days. I’m confused, any thoughts???