Calculate the volume of a std cylinder, and one that is +.040" oversized.
Got to GCR and find the formulas for C/R calculation.
Using the (known) desired C/R, solve for unswept volume using std cyl.
Calculate new C/R using 40 over swept volume.
The math is simple; the measurement's the problem, esp if piston isn't flat-topped.
really fun if the piston has a dome........but I agree the math is simple.
Heck I wrote a program for it on a Apple IIe in high school