You do the math...http://www.wermac.org/fittings/buttweld_fittings_part2.html
This is a Simple Dialog Demo.