Sweep Plane until Lower Section has a certain volume

For a simple geometry like this I don’t think there’s any need to use Kangaroo - it can be a simple geometric calculation.
If this is an example leading to more complex geometries though, here’s an example I made a while ago for simulating floating objects using Archimedes’ principle
buoyancy_archimedes.gh (60.1 KB)