The magnitude of the water hammer and the time duration of the transient condition depends on the flow-rate velocity, pipeline material and the system boundary conditions such as tanks, pumps, air valves, control valves, and changes in pipeline diameter. The pressure wave travels down the pipe at the speed of sound in the liquid. If the liquid is water, rigid pipe and ambient temperature, the wave velocity is 4,720 ft/sec.
The water hammer effects diminish over the distance. The attached paper shows that the water hammer traveled over 6 miles.