“Tanks” are cylinders with circular cross-section and axis horizontal. These cylinders are variable in size with radius and length different for each tank.
We need to determine the amount of liquid in a buried tank. We do this by “sticking”, that is, we insert a dipstick through an opening over the deepest part of the buried container until the dipstick touches the bottom, then we pull the stick out and read the liquid level showing on the stick.
I need a formula for converting the height shown on the stick to the volume of liquid in the tank.

If the length of the tank is $L$, the radius of the tank is $R$, and the height of the liquid is $h$, then if $h < R$ the volume is $$(R^2 \cos^{-1} \frac{R-h}{R} - (R - h)\sqrt{2Rh - h^2})L$$ This follows from the formula for the area of the segment of circle bounded by a chord and an arc. See, for example, the Wikipedia entry for circular segments.