function caculateNumber(a, b) {
  var sumNumber;
  sumNumber = (a + b).toString();
  var i = 0;
  while (typeof sumNumber[i] != 'undefined') {
    i++;
  }
  return console.log(i);
};
caculateNumber(1, 99);