P = 2·S·t / D × F × E × T (t without corrosion allowance). Design factors and derating per 49 CFR 192.111–192.115; ASME B31.8 allows 0.80 for Class 1 Division 1. Check the code and your company's specification.
Empirical equations were fitted to different pipelines: Weymouth is conservative (often used for gathering and short lines), Panhandle A/B for large transmission lines, IGT for distribution, Spitzglass for small-diameter plant piping. The general equation with Colebrook-White friction is the most physical.
Public textbook forms of the classic gas-flow equations. Steady, isothermal, single-phase gas. For study and screening; use your company's hydraulic software for final design.