Present perfect is a grammar tense that causes a lot of problems for learners and results in lots of mistakes.
It is difficult for students to separate the past simple and the present perfect in their mind.
Often it is because there is no direct translation for present perfect in students' own mother tongue language.
The best way to think about these tenses is this:
When you are thinking/speaking/writing about an action from the past that has definitely finished, then use the PAST SIMPLE.