Here's how soon after waking you should reach for the java.