When does your period end?

Crystal • 24, married | army wife, 1 sunshine & 1 angel, on our 4th pregnancy with our rainbow and ITS A BOY!💙
So for a couple days after I stop bleedin from my period I have brown spotting...is my period over when the blood stops or when the brown spotting stops? I've never tracked my periods so never even thought about it, haha. Just had a misscarriage 2 months ago and want to try again after at least 2 cycles.