J = \frac{q}{|p_e - p_{wf}|}
where
flowrate
formation pressure
bottom hole pressure at sandface