How to calculate damage?


I still haven’t found out how the damage is calculated. Lets take Lianna.
She creates 512% damage. What exactly does that mean. Sometimes is 500, sometimes its 1200.
She has with me currenty 583 attack strength.
So anyone knows how the damage she is creating is calculated?

One possibility I can think about is, that the difference between attack power of her and the difference of defence power by the character I attack, e.g. thats 500 is 100% which means the difference is 84. And times 5 so the damage will be araound 420.
But what happens if my attack power is lower than the defense strentgh?



The defensive value determines how big percentage of the damage that is stopped.