I've seen the question for numbers like 50, 100 or 1000, but not for $n$. Although I found a formula that might be the answer, but I don't know the name of it or the proof for it. I couldn't find it anywhere on internet as well. Here it is: $$d\times(n+1) - \frac{10^d - 1}{9}$$ $d$ is the number of digits $n$ has.
For example, for $n = 16$:
Answer: $\displaystyle2\times (16 + 1) - \frac{10^2 - 1}{9} = 34 - 11 = 23$
Also: $12345678910111213141516\rightarrow 23 \text{ digits}$
Looking forward for replies!
Thanks!
Edit 1: For those who also want to know how $d$ is calculated: $d = \lfloor\log_{10}n\rfloor + 1$