Long period?

I lost my virginity the first week of May and I had been so paranoid that I was pregnant. The condom didn’t break but I was so scared and worried and I didn’t have access to a pregnancy test or anything. I was supposed to get my period at the end of May but I didn’t get it until 7 days later, and I’ve been on it for 8 days. The week I was supposed to get it, I had brownish discharge for the whole week which worried me but I couldn’t find an explanation to it. Is it normal to be on it for 8 days? Did having sex affect my period??