This app was mentioned in 2 comments, with an average of 2.00 upvotes
You are looking for the second area moment called ( I) in mm^4 (or whatever units^4). https://en.m.wikipedia.org/wiki/List_of_second_moments_of_area
Then you need to know 2 things of you pipe, that it won't deflect too much and hit something below and that it does yield (plasticly deform). Yield is based on stress (MPa). Typical steel will yield with a stress around 200 Mpa. So how do I calc the stress and deflection? Well, you use a simplified model. An easy one is based on Euler Bernoulli. Download this app https://play.google.com/store/apps/details?id=com.sshh.mechengtoolbox
For some easy models. Fill in your values and you get your deflection and stresses. If you want to be very safe of your calcs, take a max yield stress of a bit lower than 200, say 100Mpa.
Good luck!
Btw, there are some excellent android apps that do just that, although they are based on table lookup and not equations, you might want to try this one https://play.google.com/store/apps/details?id=com.sshh.mechengtoolbox