Quick advice ! Periods !

So you know at the end of your period how it's like brown spotting ish? How do you get rid of it quicker? Or how long does it last?