in reply to getting the highest value in a simpler way
$max = 0; for $i (1 ..500) {#your loop $mutual = some_calculation; if ($mutual > $max) {$max = $mutual;) } [download]