docs: public static int calculateBindLength(int bindCount) {
      int res = 0;
      int bindLen = 2; // $1
      int maxBindsOfLen = 9; // $0 .. $9
      while (bindCount > 0) {
        int numBinds = Math.min(maxBindsOfLen, bindCount);
        bindCount -= numBinds;
        res += bindLen * numBinds;
        bindLen++;
        maxBindsOfLen *= 10; // $0..$9 (9 items) -> $10..$99 (90 items)
      }
      return res;
    }