calculating compression ratio requires knowing precisely the volume of the combustion chamber in the head, minus how much piston sticks above the deck and the volume of the headgasket. in relation to how much volume is there when top dead center and bottom dead center
finding the compression on the other hand is just running a compression test.