וְעָשָׂ֨ה כִרְצוֹנ֜וֹ הַמֶּ֗לֶךְ וְיִתְרוֹמֵ֤ם וְיִתְגַּדֵּל֙ עַל־כָּל־אֵ֔ל וְעַל֙ אֵ֣ל אֵלִ֔ים יְדַבֵּ֖ר נִפְלָא֑וֹת וְהִצְלִ֙יחַ֙ עַד־כָּ֣לָה זַ֔עַם כִּ֥י נֶחֱרָצָ֖ה נֶעֱשָֽׂתָה׃
And the king shall do according to his will; and he shall exalt himself, and magnify himself above every god, and shall speak strange things against the God of gods; and he shall prosper till the indignation be accomplished; for that which is determined shall be done.
Rashi on Daniel
and he will succeed until the fury is spent until the wrath of the Holy One, blessed be He, returns from Israel.
Rashi on Daniel
when it will be finished and executed when His decree will be finished. כִּי is like כַּאֲשֶׁר, when.