Open Question: How quickly can you become addicted to Caffeine?

I have exams next week, so this week I've been having energy drinks, I didn't realize quite how strong they were at the time I was also having about 5 cups of coffee or tea, I did this for about a week, and now I've been feeling really drained and headachey for about three days, is it because of the caffeine? what should I do?