For a positive whole number N, the supplied formula is ⌊logN⌋+1. The power law gives
log(2100)=100log(2)≈30.1.
The value lies between 30 and 31, so its floor is 30 and the digit count is 30+1=31. The rounding in log(2)≈0.301 is far too small to cross either integer boundary: rounding to three decimal places puts 100log(2) between 30.05 and 30.15.