jamie recoded the refine system the exact formula only he knows.
When you put a refine in, it will tell you the success chance after you submit it, maybe you could try and reverse engineer the formula.
The length of refine effects the maximum chance of success, everything else you will need to...