you want to calculate your knee wall? You can't do that exactly. pi times thumb a few centimeters if you want to build with UG, EG, DG.
Plan your lower floor as living space. That works. You don't need a basement as a heating, laundry, and storage room, which you then partially dig into the ground so that there is a knee wall above in the DG.
Especially with a slope, it doesn't count to be bigger than it has to be. Every excavator bucket costs