Goffeine is a simple caffeine tracking tool. It allows you to add your caffeine consumption in natural language.
The half-life of caffeine is set to 5 hours and caffeine intake that's more than 24 hours in the past is ignored. This is set according to this paper I picked because it's been the very first result of my minimal effort google search.
The project is too half-baked to accept contributions.