Days since all-time high

Is there a way to calculate the days since the all-time high for the 2500 bar lookback period available?

I have tried with HighValBar with no success.

Do you really need calendar days or will bars be OK? What did your HighValBar solution look like? HighValBar should work.