I'm creating a simple beaker 3D object in OpenSCAD, and for practical reasons (give the object realistic dimensions, maybe tweak them to meet specific demands) it prints the volume of the top cavity. Currently the cup is essentially just one cylinder (walls + bottom) minus another cylinder (hull), so the hull volume is trivial ($\pi r_{hull}^2 h_{hull}$).
The next step will be to replace the hull cylinder with an inner and outer cylinder plus a torus which rounds off the bottom corners of the hull in a smooth quarter-circle (like it's done for the bottom now). At that point the hull volume is the volume of the two cylinders ($\pi r_{outer}^2 h_{outer} + \pi r_{inner}^2 h_{inner}$ given that $h_{inner} = r_{outer} - r_{inner}$ to fit the "quarter torus" perfectly) plus some unknown formula for the part of the torus which is not also part of the inner or outer cylinders. What is that formula?
Example rendering of a cylinder with two smaller cylinders and a torus subtracted:
Hull cross-section to be rotated around the y-axis:
Torus only:
In other words, what is the formula for the volume of this quarter-circle rotated around the (right-side) Y axis?