Period

Jus wanted to know when you consider your period to be finished? Is it when you stop having blood flow, or after the brown (dead blood) is done?