S-matrix calculation for a T-Junction Waveguide