Floor Cut Floor

Hi everybody
I’m looking for a workflow to cut a floor according to another floor (slope).

I have already tried to work with In situ Components but the handling of Void with Floors is not at all obvious.
Does anyone have an idea of how this could be translated into Dynamo? I am a complete beginner in the use of Dynamo.

Thanks in advance.

In order to understand the whole problem, here is what I am looking to do, on more complex cases.

Knowing that the reference planes (ground, void, topography or any other object…) which will cut the geometry of the upper floors are sloping and often quite complex.

I need to visualise the new geometry of the upper floor once it has been cut, and to be able to ensure that the overall volume and the volume of the materials that make up the floors have been impacted by the cutting.

Thanks in advance