counts as period ending?

I’ve been wondering this for a while and haven’t figured out what to put on my period tracker for it. when my period starts just leaving brown on my tampon is that the end of my period or do I still put that as my period ongoing?