Coffee or tea can be highly energizing, and drinking caffeine even six hours before bed can dramatically affect sleep. To get over your afternoon slump, consider drinking decaf coffee, which only has 2 mg of caffeine, or white tea, which has about 15-30 mg of caffeine.