Developers have never provided the calculations behind the fortress. Experience has proven that a recalc is based on a shield reset, not from fortress destruction. Then again, the formula is different for all worlds. So good luck and don't get caught up in what the level is.