How long till spotting stops

Em

I been on birth control for over a year and I just switched to a new pill and i’m bleeding heavy on and off and it’s been about 2 weeks. When does this stop? this happened with my old bc too but I thought it wouldn’t happen again because my body is immune to birth control