TNS Macro Calculator