i think it will be impossible to get a precise formula

Heres why.

When you boost its not your over all power that is boosted. It is each individual stat. Now a 20% boost is resilience is worth more then a 20% boost in magical defense. SO that is why the overall power looks more then 20%