Volume for a triangular prism: = 1/4 of height. base side A^4 + 2(base side A base side B{ab})^2 + 2(base side A base side c{ac}) - b^4 + 2 (base side B and base side C {bc])^2 - c^4
Basically, for 2(ab) you do a times b (base1 * base2) and then double it.
Please correct me if i'm wrong.
-Phwee