The main function of Futuro Perfecto is to show that an action will be completed by a certain moment in the future. This tense is often used when we look from the future at an action that will already have ended by that moment.
For example:
Para el viernes habremos preparado el informe.
By Friday we will have prepared the report.
Here, what is important is not the process of preparation itself, but the result by Friday: the report will already be ready.
One more example:
Cuando llegues, ya habré cocinado la cena.
When you come, I will have already cooked dinner.
In this sentence there are two points: the moment of arrival and the action that will be completed earlier than this moment. Dinner will be ready before the person comes.
Futuro Perfecto is also used for assumptions about the past. This is a very important point, because in English we often translate such phrases with the words “probably,” “must have,” “most likely.”
For example:
¿Dónde está Ana? — Habrá salido.
Where is Ana? — She has probably left.
Formally, this is the future tense, but the meaning refers to the past or to the present result: the speaker assumes that the action has already happened.
More examples:
No encuentro mis llaves. Las habré dejado en la oficina.
I cannot find my keys. I must have left them in the office.
Pedro no contesta. Se habrá quedado dormido.
Pedro is not answering. Most likely, he has fallen asleep.
This variant is often found in live speech. Spaniards use Futuro Perfecto not only for plans, but also for logical guesses.