According to here, for truncated pyramid with rectangular base:
The volume is given by:
$volume= h/3*(a*b+c*d+(a*d+b*c)/2)$
What if the base is an irregular surface area, defined by $n$ sets of coordinates?
How to extend the above volume formula to cater for irregular surface area?

We need to find the area of top and bottom surfaces.
You can also visit: http://mathworld.wolfram.com/PyramidalFrustum.html