By the time you come home, I will have cooked dinner.
I'll have written my composition by the time you ring me up.
You will have spent much efforts before you can run a marathon.
Before the end of my holiday I shall/will have spent all my money.
When I arrive, you will have gone to bed, baby.
The editor needs your article on Monday but I see you will not (won’t) have finished it by that moment.