What do you consider your last day?

I’ve noticed that after 5 days of heavy & mild bleeding, I have brown stuff come out. It isn’t the same consistency as my period blood. Is that still considered my period? Is my cycle 28 days forsure? I can never tell.