how do i do volume of a 3d shape

Depends on the shape.

Volume of a rectangular box,

V = Lwh units^3