do some math to get the values in the correct units