An algorithm to tell you how and when to have caffeine - by @dcrypt...