Spotting a lot

Ruthie

Guys I’m not supposed to get my period till the end of the month but I’ve been spotting since the beginning of the year 2 different times and it’s for a few days...does anyone know why this is? I’ve been on the pill for 2+ years now