No, theres no formula, but there is parameters that you can assign on items.xml, like up magic level, ressistance against an element, pump up skills and all that, maybe if you check some items like sword ring in items.xml you will see how that works, and also to make it works you have to register it on movements folder
if you still don't understand can you explain what exactly you want?