Calculating the height of a building