Whats going on?

Yesterday was the day of my expected af, I bleed during the day literally changed my tampon once and left it out the entire day no blood. TODAY, all I’m getting is brown discharge. What’s going on? I did have unprotected sex 5-6 days before my period.