To the ceiling of the top occupied floor. Spires, towers, domes, antenna, chimneys, mechanical penthouses, etc. should not be counted
at all.
Edit to add an example from the diagrams here:
I think it's patently absurd that the building on the left is "taller".