Formula in excel
=AVERAGE($B$20,$C$20)/((PI()/4)*(AF21+0.01)^2)
is basically this:
=AVERAGE(5000,4500)/((PI()/4)*(0.3859+0.01)^2)
Which out puts as 38586
Formula in javascript
function calcUltimate(max, min, radius) {
return (((max + min) / 2) / (Math.pow(((Math.PI / 4) * (radius + 0.01)), 2))).toFixed(0);
}
Output is 49130
I can not get the outputs to match at all. I don't know what I am doing wrong here.