TMaxIf()

TMaxIf(a;b;c;d) returns the maximum time from results with ID a to b, which is greater than or equal to c but less than or equal to d.

e.g. TMaxIf(1;10;3600;3900) - returns the maximum time from Results with ID from 1 to 10, which is greater than or equal to 1h and less than or equal to 1h05m