In 30 years I will have been working for 45 years.
By the time I retire, I will have been a teacher of 3 generations of kids.
In 2 days, the bug will have been eaten by the frog
In 100 years, gasoline powered vehicles will have been replaced by electric vehicles.
In a week, the groceries I bought will have been consumed.