Rule 1: 1. The future perfect: يَكُونُ قَدْ فَعَلَ
To say that an action will already be complete at some point in the future, put the imperfect of كَانَ before the perfect of the main verb. قَدْ is usually inserted between them and makes the meaning unmistakable: يَكُونُ قَدْ رَجَعَ he will have returned. سَـ may be added to يَكُونُ for a clearly future sense. The subject stands either between the two verbs or after them. The same pattern after يَجِبُ أَنْ or لَا بُدَّ أَنْ gives must have done: يَجِبُ أَنْ يَكُونَ قَدْ ذَهَبَ he must have gone.
عِنْدَمَا تَصِلُ إِلَى الْبَيْتِ أَكُونُ قَدْ أَعْدَدْتُ الْعَشَاءَ.
ʿindamā taṣilu ilā l-bayti akūnu qad aʿdadtu l-ʿashāʾa
By the time you reach the house I will have prepared dinner.
أَكُونُ, first person imperfect of كَانَ, then قَدْ and the perfect أَعْدَدْتُ.
فِي السَّنَةِ الْقَادِمَةِ يَكُونُ أَخِي قَدْ أَتَمَّ دِرَاسَتَهُ.
fi s-sanati l-qādimati yakūnu akhī qad atamma dirāsatahu
Next year my brother will have finished his studies.
The subject أَخِي stands between يَكُونُ and قَدْ.
سَيَكُونُ الضُّيُوفُ قَدْ وَصَلُوا قَبْلَ الظُّهْرِ.
sa-yakūnu ḍ-ḍuyūfu qad waṣalū qabla ẓ-ẓuhri
The guests will have arrived before noon.
لَا بُدَّ أَنْ يَكُونَ الْقِطَارُ قَدْ تَحَرَّكَ.
lā budda an yakūna l-qiṭāru qad taḥarraka
The train must have left.
After أَنْ the verb يَكُونَ is subjunctive.
عِنْدَمَا يَبْلُغُ الشَّابُّ الثَّلَاثِينَ يَكُونُ قَدْ تَزَوَّجَ.
ʿindamā yablughu sh-shābbu th-thalāthīna yakūnu qad tazawwaja
By the time a young man reaches thirty he will have married.