Width: Take measurements in three places, the top the middle and the bottom of the window frame: for inside mount use the smallest of the three dimensions; for outside mount use the largest of the three dimensions of the area to be covered.
Height: Take measurements in three places, the left, the center and the right: for all mounts use the largest of the three dimensions of the area to be covered.