Calculating slant height of a cone