Using time interval for calculation

Hi,

how can I use the time interval selected on the top right in a singlestat Math graph for calculation?
I’ve looked at the global variables like $__interval, but it seems this is not allowed to be used for calculation… would appreciate any ideas on this.

Thank you!

Kai

I found $__to and $__from which give me the results that I need.