Hi Pascal
It appears that I have simply matched you step by step
= LET(
filtered, FILTER(data, timeline>=startDate),
accumulated, SCAN(0, TAKE(filtered,,-1), SUM),
filteredDate, TAKE(filtered,,1),
XLOOKUP(target, accumulated, filteredDate,,1)
)
There is a slight difference...