Advanced #1 What are the 2 uses of the futur anterieur in #French?

In French the futur anterieur works with the futur simple but not only. Lean why.