log is what you need as the above poster mentioned
<img src="http://www.purplemath.com/modules/logs/relatani.gif">
this is what it does, but you need to use the change of base relation
<img src="http://upload.wikimedia.org/math/5/6/f/56f7df21ad6bc1d3ce9ddff7ac5bb047.png">
the base k used doesnt matter, so ln or log (base 10) can be used interchangeably