Question: what is the formula of computing the distance of the epicenter?
Answer: Measure the difference in arrival times between the first shear (s) wave and the first compressional (p) wave, which can be interpreted from the seismogram. Multiply the difference by 8.4 to estimate the distance, in kilometers, from the seismograph station to the epicenter.