Long period?

So my period was supposed to end 2 ish days ago but I still have light (like very spotty) blood when I wipe. I also have a small ammount of blood in my panties. My periods tend to be 5-7 days long, it’s now dragging out to be 9. Is it bleeding again because I masturbated?