The key difference between resistance and impedance is the word "change", the rate of change affects the impedance. Usually the "change" is expressed as a frequency, the number of times per second the current or voltage change direction. The formulas are: