IB can be extremely stressful (i'm a first year IB Student) and that could be causing your irregular periods. I'd suggest that if by the time you finish IB and youre still experiencing extremely odd period times then go for the pill, or get yourself checked over by a doctor before deciding to go on the pill :).
I wish you luck with IB and sorry if my ramblings don't make much sense, haha!
