Use lists in formulas

I have a list with hourly prices for the electricity that is populated from Tasker.

Is there a way to use all values in the list in formulas, for example to get max/min?

Right now the only way I have found is to do a local variable for each hour and put it in the formula, but that feels rather tiresome…