Update util.py

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.