A short explanation, then exercises from B1 to C2. Each exercise page has at least 5 sets of sentences to complete, a grammar guide, and every answer explained.
The future perfect (will have + past participle) looks back from a point in the future: something will be finished before then. The future perfect continuous (will have been + -ing) says how long something will have been going on at that point. Both usually come with a time phrase with by (by Friday, by the time you arrive) or with for. After when, by the time and before, use a present form, not will.