I'm not what's the most pythonic way of doing it, another solution is:
```Python
index_padding = int(math.log10(queue_length))+1
```