Formula

Formula for Volume of Barrel:
Volume of Barrel = (h * PI * (2* r12 + r22) / 3 )

Where,
h = Height of the Barrel
r1, r2 = Radii of the Barrel