Formulas from ‘Training and Racing with a Power Meter’

Introduction

Update march 6 2018: Alex Simmons pointed out that CTL and ATL are calculated as exponential moving averages of TSS and not straight averages. I corrected the calculations.