Algorithm to calculate caffeine intake for peak performance | Hacker News Reader