Spotting

I currently am on the pill but continue to spot weeks before I am "supposed" to have my period. Sometimes it will last up to 5 days. Then when it's time for my actually period, I will have that as well. Anyone else have this problem or know what to do about it?! I'm getting very frustrated.