Fix formula for magic level tries when offline training