Using panel time difference in a query

Using 9.0.2 docker container.

I want to calculate the offset of the selected time range and use it another query, for example the following:

Is this even possible? It seems that Math queries can reference other queries, but not the other way around?

(I know this is not the perfect query given it’s a counter, I should be using prometheus’s increase function, but the same underlying problem exists)