How to calculate 2 + 22 + 222 +. 2222?

How to calculate 2 + 22 + 222 +. 2222?


This can be multiplied by the number of digits. For example, you can multiply by the number of digits by the number of digits: 2 * 1 + 2 * 2 + 2 * 3 + 2 * 4 + 2 * 5 + 2 * 6 + 2 * 7 and so on 2222222 ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^?