MAX_SPELL_LEVEL goes by the following func

(14.5 * log(x)) + 5 = L

Where x is the spell level, and L is the max caster
level.
