A cube on a table has edge length 24. A plane intersects the cube's four vertical edges at points A, B, C, and D such that point A is a vertex of the cube lying on the table. The heights of points B and C from the table floor are 7 and 12, respectively.

Calculate the volume of the portion of the cube that lies underneath the cutting plane.