Don't confuse these
Affect vs Effect
Affect
To influence or change something.
The rain affected our plans.
Effect
The result of a change.
The rain had an effect on our plans.
Affect is the action. Effect is the result of that action. If you can put 'the' or 'an' in front of it, you want effect.
Learn the difference