OP, the calculation you're describing in nearly impossible. You're essentially asking how to solve the game of holdem.
The truth is that the math is far too complicated to do manually. You either have to use very abstract models, or use a solver.
For resources on learning game theory, I would recommend this short
introduction to game theory by Zener, or the more advanced
Applications of No Limit Holdem by Janda. Mathematics of poker is also a great option.
If you want an example shown to you on 2+2, start with a very simple river scenario. Solving rivers is much simpler (and more informative for a beginner) than solving flops.
Alternatively, you could simply buy a sovler like Piosolver, Simple, GTO+, Monker, etc. Let the computer do the hard work!