What do you consider..

The end of your period? The end of red bleeding? I have brown discharge/bleeding for like 3 days once major flow stops. So when should I count the end of my period