Present Perfect vs Past Simple
all actions happened in the past but:
1. when is not important: I have finished my homework.
2. is still going on:
I have lived here for 2 years3. result is important now: I have lost my key (and can't get in)
4. with words: just, lately, recently and yet. (see FYNE JAS)