P And S Wave Formula