macro to perform TnP fits for prompt rate computation