The damage reduction is:
sqrt(armor / 10 - attackerLevel + 8)*0.4 - 1.1) clamped between 1% and 95%
The numbers in the formula are single precision floating point values.