Random 2 week period

Ive been having an odd period thats lasted for two weeks and still going. Normally it lasts 5 days. It also came a week earlier than my usual cycle. 
Ive been quite stressed revising for exams,  but is there anything else that could have caused it? Also is there any way i could stop this from happening again? Its a huge pain in the neck.