I had the same question a while back and answered it for myself. The math to calculate HQ Raetic Bonus per run to target TP isnt a simple place to start if you're just getting into this kind of math, but I did I build this ability to figure this out my into my calculator.
The STP required to reach a specified X-Hit is an estimate for HQ raetic weapons, but the simulated (and variable, with HQ Raetic weps) "Actual" X-hit value it returns once you've plugged your info in will be statistically accurate.
You'll need to make a copy into your Google drive, configure it, and input your info.
Base Calculator File (works standalone):
https://docs.google.com/spreadsheets/d/10LpRCPET1mYTV2rcNIZZvCLJeXHuWePKmNmSDOHIgjM/copy
External Probability Engine (Requires a simple configuration plus permissions within both files. Makes it faster):
https://docs.google.com/spreadsheets/u/0/d/1DTWsvRVTgfFZ-GdMY9Tfb8zCOuzIe87QmdQUJmtVHi4/copy
Edit: The math is quite a bit simpler with 2-handed HQ Raetic weps. What I provided above works with all combinations of main and sub equipped 1-handed HQ Raetic weps as well. That, when coupled with a non-100% hit rate makes things more fun to calculate