With the box open toward you, here is how to get the correct measurements for the inside of the box:
The length is measured from the left to right side of the box.
The width is measured from the front to the back side of the box.
The height is measured from the top to the bottom side of the box