counts as period ending?

I’ve been wondering this for a while and haven’t figured out what to put on my <a href="https://play.google.com/store/apps/details?id=com.glow.android.eve">period tracker</a> 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?