Firstly, you have to determine what is the Reynolds number for your case of study. Its value will show you what type is the flow and what method you have to use than, to determine the flow rate...
You can use this link to see how to determine Reynolds number value: https://www.uio.no/studier/emner/matnat/math/MEK4450/h11/undervisningsmateriale/modul-5/Pipeflow_intro.pdf
I just done the calculation using Bernoulli's Equation as shown:
2" stainless steel pipe diameter = 0.05m
length of the pipe = 20m
roughness = 0.002
relative roughness = 0.04
friction factor,f = 0.50506
ΔP = 2 bar
Δx/D = 400
By substituting all the value into this formula, i got V= 22m/s
V=square root of [(2ΔP)/p(4f(Δx/D)−1)] A=pie*r^2 = 0.00196349541 m^2
Q=VA= 22x0.00196349541= 0.043 m^3/s = 43 l/s
It seems impossible for the 2" stainless steel pipe with water pressure of 2 bar to have a water flow rate of 43 l/s. So wan to ask where i got wrong ?