LibreOffice has function LOG(x;n)
where you can define your own base.
However, when I use Macro to write function in Basic, It does not take second parameter into account thus calculating natural logarithm.
How to calculate logarithm with own base in Basic language?