tnx function

Maximum TN