Resistance formula

Hi, anyone knows the magical resistance formula to know the raw % chance of resisting a spell in PVP?
Like, if i have 150 shadow resistance, whats the chance of resisting shadow word pain?
Like, if i have 150 shadow resistance, whats the chance of resisting shadow word pain?