integrate height calculation