Future Perfect Continuous diagram
In English we use Future Perfect Continuous Tense when we talk about activities which will finish before a certain moment in the future.
He will have been doing the shopping for two hours by the time she arrives home.