This should be calculated based on the glazed area of window, expressed as a percentage of the area of the external wall in which the window sits.
Where the ceiling height of the room is unusually high, relative to the window height, the wall area can be calculated based on a standard ceiling height for the building type.