What does The Sleep Debt of Afternoon Tea conclude, in numbers, about “A Sleep-Debt Ledger: an Interval Bracketed by Three Loss Models”?
Answer: One black tea at four costs 0.0, 22.8 and 42.8 minutes a night under the three loss models, and the fourteen-day net debt runs from zero to 141.7 minutes. With three tenths repaid each night, the debt reaches nine tenths of steady state by night 7. Under the middle model, switching from coffee at four to black tea at two saves 145 minutes a week, and a coffee at ten in the morning costs almost the same each week as a black tea at four. The width of the interval is precisely the reason the trial of Chapter 8 is needed.
Scope of the numbers: Except where a source is named, its parameters are illustrative; all calculations are generated by its programs. The book is not medical advice and claims no health effect; anyone planning a self-experiment should first consult a licensed physician.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 0.0, 141.7, 22.8, 42.8
| B0 = 3.24 min; repayment R = 0.3 per night | |||||
| scenario | model | L/night | debt_d7 | debt_d14 | steady |
| tea 16:00 | LIN | 0.0 | 0.0 | 0.0 | 0.0 |
| tea 16:00 | EMAX1 | 22.8 | 69.8 | 75.5 | 76.1 |
| tea 16:00 | EMAX025 | 42.8 | 130.9 | 141.7 | 142.7 |
| coffee 16:00 | LIN | 5.0 | 15.4 | 16.7 | 16.8 |
| coffee 16:00 | EMAX1 | 39.2 | 119.9 | 129.8 | 130.7 |
| coffee 16:00 | EMAX025 | 56.1 | 171.6 | 185.8 | 187.0 |
| tea 12:00 | LIN | 0.0 | 0.0 | 0.0 | 0.0 |
| tea 12:00 | EMAX1 | 14.7 | 45.0 | 48.7 | 49.0 |
| tea 12:00 | EMAX025 | 32.6 | 99.7 | 107.9 | 108.7 |
| tea 16:00, EMAX1: 14-night gross loss 319 min = 5.32 h | |||||
| nights to reach 90% of the steady debt: 7 |
Show the full program
# Chapter 6. p61: fourteen afternoons of tea as a sleep-debt ledger
# 每晚损失 L 用三种模型夹出区间:
# 下界 LIN:Gardiner 2023 斜率(0.2 min/mg,-2.8 min/h),截距 B0 使咖啡
# 107 mg 在 8.8 h 处为零:B0 = 2.8 x 8.8 - 0.2 x 107;负值截为零;
# 中位 EMAX1:Emax,EC50 = 1.0 mg/L,LMAX 由 Drake 6 小时条件定(p43);
# 上界 EMAX025:EC50 = 0.25 mg/L(p43 中唯一同时吻合 Drake 三个时点者)。
# 睡眠负债 D 按 D(n+1) = (1 - R) D(n) + L 累积,每晚偿还比例 R = 0.3(示意)。
# 对照(Gardiner 2023):总睡眠减 45.3 分钟,觉醒时间增 11.8 分钟,睡眠效率
# 降 7.0%,N1 浅睡增 6.1 分钟,N3 与 N4 深睡减 11.4 分钟。
import math
KA, V, TH, WIN, BED, R = 3.0, 0.6 * 70.0, 5.0, 4.0, 23.0, 0.3
B0 = 2.8 * 8.8 - 0.2 * 107.0
def win_mean(h, dose, th=TH, w=WIN):
ke = math.log(2.0) / th
a = dose * KA / (V * (KA - ke))
pe = (math.exp(-ke * h) - math.exp(-ke * (h + w))) / ke
pa = (math.exp(-KA * h) - math.exp(-KA * (h + w))) / KA
return a * (pe - pa) / w
E6 = win_mean(6.0, 400.0)
def emax(e, ec50):
return 69.0 * (E6 + ec50) / E6 * e / (e + ec50)
def nightly(dose, h):
e = win_mean(h, dose)
return [max(0.0, B0 + 0.2 * dose - 2.8 * h), emax(e, 1.0),
emax(e, 0.25)]
print("B0 = {:.2f} min; repayment R = {} per night".format(B0, R))
print("scenario model L/night debt_d7 debt_d14 steady")
for name, dose, clk in [("tea 16:00", 47.0, 16.0),
("coffee 16:00", 107.0, 16.0),
("tea 12:00", 47.0, 12.0)]:
ls = nightly(dose, BED - clk)
for mname, lv in zip(["LIN", "EMAX1", "EMAX025"], ls):
d, hist = 0.0, []
for _ in range(14):
d = (1.0 - R) * d + lv
hist.append(d)
print("{:<15} {:<8} {:>8.1f} {:>7.1f} {:>8.1f} {:>6.1f}"
.format(name, mname, lv, hist[6], hist[13], lv / R))
gross = 14.0 * nightly(47.0, 7.0)[1]
print("tea 16:00, EMAX1: 14-night gross loss {:.0f} min = {:.2f} h"
.format(gross, gross / 60.0))
n = math.ceil(math.log(0.1) / math.log(1.0 - R))
print("nights to reach 90% of the steady debt: {}".format(n))Single source and citation
Fan, Y. (2026). Caffeine-Theanine Pharmacokinetics, Adenosine-Receptor Half-Lives and the Sleep Debt of Afternoon Tea (Version 1.0.0), Chapter 6: A Sleep-Debt Ledger: an Interval Bracketed by Three Loss Models. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-186 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026186,
author = {Fan, Yafu},
title = {Caffeine-Theanine Pharmacokinetics, Adenosine-Receptor Half-Lives and the Sleep Debt of Afternoon Tea},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · The Dose Gap: the Theanine in One Cup and Drake's Four Hundred Milligrams
- Chapter 2 · The Bateman Curve: One-Compartment Oral Absorption and One Calibrated Threshold
- Chapter 3 · Fast and Slow: the CYP1A2 Half-Life Distribution and Stacked Doses
- Chapter 4 · Adenosine Receptors: Occupancy, Masked Pressure and Saturation
- Chapter 5 · Solving for the Last Cup: Threshold, Quantiles and the Day's Budget
- Chapter 7 · Classics East and West: Lu Yu's Chapter on Drinking and Balzac's Treatise on Modern Stimulants
- Chapter 8 · Closing the Loop: Menu Labels, a Fourteen-Night A/B Test and Pre-Registered Refutation