Solving for height of a cylinder