I think you want to use the logarithm in base 10, the one you use returns the closest double approximation of the natural logarithm.
So your expression should be :
i = (495 / (1.0324 - 0.19077 * (Math.log10(76.2 - 25.4)) + 0.15456 * (Math.log10(170.18))) - 450);
Output :
20.630024173730078