Implemented calculations for diam and head loss formulae