Pinging

I was wondering if you can tell compression by doing a compression test. Is there a formula.