Period ?

Hey everyone my period started July 13 and ended July 17 and I was still spotting brown for like 3 days. I had sex on saturday and Today Monday I went to the bathroom and I wiped and there was blood. Does this still count as a period day??? This is weird had anyone had this happened before ?