FORMULA Only valid for base 10?

How do we have to calculate for other bases then??