Hi !
Maybe you will find your answer in this conversation :
Volume Calculation in between 2 topography (say with a rectangular boundary) - Dynamo (dynamobim.com)