Compare the average duration with previous calculations

I didn’t find much info on the Lag-function. So it is unclear what this functions does.

Now, I’m looking at the periodOverPeriodDifference function as described in this blog: Period Functions Using Parameters