add ScalingFactor and placeholder of MaxScalingFactor
move scaling factor calculation into MaxScalingFactor and fix error of formula in the comment