I've upgraded SHITLOADS of item, and wasted thousands of gb's on that anvil.
And there is 1 thing i can tell you:
All Upgrades have 2 chances, Burn or Fail
So from that, its all about luck, no need to calculate this or that, it wont help you anyway
Just grow ballz, throw it on and hope for the best