How to use standard flange & pipe OR how to use standard nozzle to create tank for routing ?

how we can use standard nozzle for given example or how can we apply EXTRUDE FEATURE ( upto surface) for that particular pipe coming out of falnge towards tank routing suggest me any other alternatives possible bt it should be standard one . hope to get help soon .

SolidworksDrawings And Detailing