Menstruation, is the old blood that comes at the end of the cycle considered the last day ?

or is the last day considered the last day you bleed red only. And the older blood is the body just cleansing. I would like to know to keep a better track of my cycles. thanks