How to get volume of intersection between two parts?

Say I had something like this except in 3D:

Anyone know an easy way to get the volume of the red area?

From what I know, there isn’t a really easy way. You will probably have to detect if they are intersecting at all, find the position of each corner, and do some math to find how much is intersecting.