Controller ess time of use tariff

Hi all,
I am working with the Time of Use Tariff controller in my project. Can you explain how the controller determines the low and high prices provided by ENTSO-E? Specifically, I would like to understand the logic used for identifying low and high prices in the controller code.
thanks for any helps!