結果 : height of stack formula