End of period

Erin

When do you consider the last day of your period is? Is that brown discharge still considered a day of your cycle? I’ve been logging on my tracker when the actual blood stops, but still experience the light brown discharge the day or two after...which then makes my period come one-three days before my “start” date on the calendar.