The orifice equation
A nozzle behaves like an orifice. Bernoulli's principle says the jet speed is about the square root of twice the pressure divided by the water density, trimmed by a discharge coefficient near 0.96. Multiply that speed by the nozzle area and you get the flow.
Irrigation engineers write this in US units as flow (gal/min) = 29.82 x Cd x D squared x square root of P, with D in inches and P in psi. That is the formula behind both flow readouts here.
Reach is a table, not a formula
In a vacuum the jet speed shown here would carry water a very long way. In air, drag breaks the jet into drops and most land within roughly 10 to 25 meters. Manufacturers measure the wetted diameter for each nozzle and pressure, and growers space sprinklers from those tables, so this model shows reach only qualitatively.