How to cut and then merge two members in birdbeak T-joint

Hello Community,

I want to model a steel bird beak T-connection where horizontal member is rotated at 45 degree with it's longitudinal axis and vertical member joins with it (pic-1). In pic-2 I tried to do same, now I want to cut the excess portion of vertical member. Is there any way to do so?