Drinking coffee in the afternoon may keep you up at night. It's best to avoid caffeine after noon, especially if you are sensitive to it.