Z = V_p \ \rho_b

where  is p-wave velocity,  – bulk density of rocks.