A little context. A clearer answer.
When this calculator is useful
Choose a starting moment and enter every portion in milligrams with its elapsed hour. The two scenarios keep these portions fixed and change only the half-life. The observation line shows how much remains in each simplified model at that moment. Related calculation: clock time arithmetic calculator.
What to enter
| Input | What it means | Example value |
|---|---|---|
| Caffeine portions, separated by ; | Milligrams in each portion, separated by semicolons; include all relevant earlier portions. | 100; 100 |
| Hours after the chosen start, separated by ; | Matching elapsed hours after your chosen start, e.g. 0; 4; 26. Equal times are allowed. | 0; 4 |
| Observe at hours after start | Elapsed hour at which to compare the remaining amounts; future portions are excluded. | 8 h |
| Half-life scenario A | User-selected half-life for scenario A, in hours; not a measured personal value. | 4 h |
| Half-life scenario B | Alternative half-life for scenario B; portions and intake times stay unchanged. | 8 h |
How the calculation works
- Enter labelled milligrams and a matching elapsed hour for every portion.
- Set the observation hour and two half-life assumptions.
- Compare the curves and per-portion residuals; do not interpret the output as a safe threshold.
C(t,h) = Σ[t ≥ tᵢ] Dᵢ × 2^(-(t−tᵢ)/h)A worked example
100 mg at hour 0 and 100 mg at hour 4 leave 75 mg at hour 8 with a 4-hour half-life: 25 + 50 mg. The same portions with an 8-hour half-life leave 120.7107 mg.
Example you can load
What to enterThis is a fixed example; changing the form above does not change these numbers.
Assumptions & limits
Use label or measured caffeine amounts; drink names have no preset dose. Enter 1–24 portions and matching nondecreasing hour offsets; 24 h means one day after your chosen start. Portions after observation contribute zero until their time. Instant absorption and constant exponential elimination are assumptions. Half-life varies between people and circumstances. No safe dose, additional-dose recommendation, blood concentration or sleep guarantee.
Frequently asked questions
How do I enter portions after midnight?
Keep counting elapsed hours from the same starting moment. Hour 26 is one day and two hours later. Use actual elapsed hours across daylight-saving changes.
What happens to a future portion?
It adds nothing before its entered time. At that time the simplified model adds the full amount, then applies exponential decay.
Does a low residual mean I can sleep or take more caffeine?
No. This is an amount scenario, not an individual pharmacokinetic measurement or a recommendation. It omits absorption delay and metabolites.