[tor-commits] [sbws/master] Replace min by max in formulae and simplify