Present perfect in the first conditional
The present perfect in the if-clause of a sentence in the first conditional emphasises that one action depends on the completion of another:
If I've finished writing my paper by tonight, I'll go out with my friends.