end of period?

I know this seems really stupid, but how do you know when your period is over? Is the brown/dark red spotting considered your period still? I'm 26 and still don't know. 😂