How To Figure Compression Ratio

I only care about the current compression ratio because it runs so well on 93 octane and never gets hot. I'd like to know where I'm at because I don't want to stray too far from here with the new set up.
I guess I understand that but I’d still not worry too much about it. The aluminum heads and cam change (if going bigger) will change the detonation tolerance of the engine.