Update util.py to utilize more efficient logarithmic calculations

Changed line 41 so that the logarithmic change to base 1000 formula uses log base 10  instead of natural log. This allows the denominator to be simplified to 3. Also got rid of the use of floor() inside of int() because it is redundant.