4dogs
Whatever formula you get, remember the real world is not flat [increased GP altitude by 90 ft at 10nm], and there are true altitude considerations. Otherwise unexplained crossing altitude errors may be more clearly understood if you do more complete maths.