The formula was broken before so that some bonuses were applied after the rounding to 1 or 99 (as appropriate). I think they were bonuses on the weapon itself and mount bonuses. But, it was fixed, and is now as simple as adding all bonuses and penalties to the base (including range) and then rounding.
