USPS Dimensional Weight

How is DIM weight calculated?