Calculates the height of a tree after N growth cycles