Brown discharge for 3 weeks??

I skipped my period last month on my birth control. This month I accidentally missed a pill, so of course I started bleeding. But now I’ve been lightly spotting for 3 weeks!!! It goes from blood to brown discharge to nothing. How can I get this to stop??????????