Calculating the power of each magical spell