Accuracy of formulas for calculating dynamic heights