Head loss in pipes is calculated by using the Darcy equation for newtonian fluids. But that seems like waaaaaaaaay overthinking it. On the scope and scale of MOST reef tanks we are talking tiny changes....so through a 1" union from 1" to 1" sch 40 PVC you should not lose enough head pressure to care about due to the union, it should be effected by the height/pitch/angle of pipe, a gate valve is a variable flow adjuster using a "gate", so I'm not sure what you mean, wide open it shouldn't effect flow directly, same goes for a ball valve. Let's say the gate valve is 50% open, so you are cutting 1/2 of your flow rate (not pressure per say)...the math is starting to get complicated. A T is techincally 2 90 degree turns, so my assumption would be double the 1/2 foot of pressure added per 1" elbow pipe....so 1 foot of pressure. What are you trying to figure out? Please don't make me dig out my math books. Its only tuesday. I would call a plumber if you have something wild going on. Again, normal reef tank stuffs we usually don't have toooooo much to worry about. Have you tried the Pentair calculator yet????
https://pentairaes.com/pump-calculator