Use math.log & math.pow instead of calculate them manually.
Fix an error in the units: The last unis should be YB.