I'm currently trying to calculate the volume of a relatively rectangular solid where all four corner points are at different depths. I'm aware it's probably a pretty simple solution, but for some reason my brain just isn't working this morning.
I've drawn a rough sketch of the appearance of the shape
The sides with matching colours are the same lengths.
Any help would be greatly appreciated, and I thank you so much.

let $AB=h_1,EF=h_2,GD=h_3, HC = h_4$ , Let $AHGF$ be a rectangle base with $AH=l \ and \ AF=b.$
(I know the diagram is not clear but as you can see I am trying to cut figure by a plane which is prependicular to $AHGF$ and have a thickness $dx$)
lets say plane cuts $BC\ at\ K , ED\ at \ L, AH\ at\ M, GF \ at \ N.$
So $MK= h_1+(h_4-h_1)\frac{x}{l}=t(x)$ and $NL=h_2+(h_3-h_2)\frac{x}{l}=s(x).$
So the area of the trapezium $'KLMN'=\frac{s(x)+t(x)}{2}b$
So the required volume is $\int_0^l [\frac{s(x)+t(x)}{2} \times b]dx$
So final answer is $\frac{h_1+h_2+h_3+h_4}{4}lb$(as the $@ 'Jaap Scherphuis'$ said)