I’ve been meddling around w/ this calculation and I was using the same formula as you namely:
let newAtl = prevAtl + (TodayTSS - prevAtl)/7
let newCtl = prevCtl + (TodayTSS - prevCtl)/42
BUt when I compare the data with that from intervals.icu’s wellness API endpoint, I get some differing number (rounding delta of 1 or -1 from my calculation and that of intervals.icu)
It took some digging, but the formula from @JASON_C_WILLIAMS
- ATL = (ATLyesterday)(e(-1/k))+ (TSStoday)(1-e(-1/k))
- CTL = (CTLyesterday)(e(-1/k))+ (TSStoday)(1-e(-1/k))
Was the key to consolidating the numbers from my own calculation and that of intervals.icu (now they match)
Somehow, the formula used by @david for intervals.icu and that @JASON_C_WILLIAMS got is different from that of TP’s article you linked. https://help.trainingpeaks.com/hc/en-us/articles/204071884-Fitness-CTL-