What's the formula giving the % of succesfully maliciously messing the blockchain?
The formula is directly from the original paper by Satoshi Nakamoto. Check pages 6-8. The paper has C code to easily compute the values, and that page you linked to is just that C code converted to javascript.