You can calculate the amount of cargo containers and consumables very precisely. But you need a spreadsheet for that which applies the rocket equation. Have a look at this pic:

https://drive.google.com/file/d/1ufea-hALduwgVSB7eXWDAtlDg93Y7Ere/view?usp=sharing
It's from an old spreadsheet. The numbers can be wrong, put pay attention to the structure. Vertically, you can put stages of the mission, like Landed, Takeoff, Circulatization etc.

On each row, using three known values of the rocket equation, you can calculate the fourth (in red) and use than one on the next row. That's basicaly the idea. The amount of delta-v required for each row has to be determinded empirically. So you have to test-fly parts of the mission to know how much delta-v it will cost. Since delta-v is not depended on the mass, you have to do this once only and you can use the value for future calculations regardless of mass.