Is it the external "top surface" or internal "top surface" of the lid? In other words is it the distance from the beaker to where it first hits the lid?

Top surface means the upper most thing that could be considered a surface, which in most cases is the 'external' part of the lid.