Calculates the total surge pressure due to a sudden shutting of a valve, or water hitting the end of a pipe.