Here is the procedure to be followed for calculating ECC using S-parameters. Write the equations in Output variables section of the HFSS. If you still face any problem, I'll send the step by step procedure along with snapshots to calculate them in ANSYS (HFSS).
FYI
num = (mag(conjg(S(1,1))*S(1,2) + conjg(S(2,1))*S(2,2)))^2