If you want to do accurately this by hand then use either the K values published in "Handbook of Hydraulic Resistance- IE Idelchik" or
"Internal Flow Systems - DS Miller".
There are several software packages that will do this for you. Try searching on Google using...