How the conversion works
Multiply each octal digit by 8 raised to its position index (starting from 0 on the right) and sum all the products to obtain the decimal value.
For example, octal 144 equals 1 times 64 plus 4 times 8 plus 4 times 1, giving decimal 100.
decimal = sum of (digit_i * 8^i)
Each octal digit is multiplied by 8 raised to its position, starting from 0 on the right.