Here is a tip:
If you are gonna use the word affect, always think of the word affection. If you use affect it means that it has somethin to do with feelings or you managed to change or influenced something.
Now if you are using the word effect, always think of the cause and effect. When using the word effect it means that it is the output of the cause.