Any idea

I am on the pill. I do not take it every day at the exact same time. However my periods are always reg and approx 5 days in length. This last time it lasted 2 weeks and then stopped. However after 5 days started again. What could be te reason or cause of this?