Started over. Fixed a lot of weird issues.
Added Metric Unit Switch logic.
Calculation now works for metric units.