Midrange formula math.asp