This section is at https://rollingedition.com/time-series-forecasting/add-calendar-and-lag-features#catch-a-lag-that-leaks.