Drinking your last coffee of the day is recommended six hours before going to bed. During this time, caffeine can be flushed out of the body. Caffeine can cause difficulty falling asleep, restless ...