Two future tenses: future simple for actions that will happen, and future perfect for actions that will be finished by a future point.
Use: for actions that will happen at a time in the future (predictions, promises, spontaneous decisions, future facts).
Use: for actions that will be completed before a specific time in the future.
The action will happen.
Ronaldo will come to Morocco next year.
The action will be finished by a moment.
By next year, Ronaldo will have retired.
Future simple = will + bare verb. Future perfect = will + have + V3.
Words like by 2030 / by the end of the week / by next year trigger the future perfect.
won't (= will not) / won't have + V3 (future perfect negative).
Look for the time marker! If the sentence contains "by + future time", use the future perfect (e.g. "By 2030, Morocco will have investedβ¦").