Calculating Heights or Distances