How to determine elemental attack/defense calcs

Have a read of these two threads:

(answer to this thread):