The peace treaty will not necessarily be announced as a 7 year peace treaty. It could be, for example, 20 years. It is a period of 7 years on God’s calendar. He knows.
Check Daniel - he confirms the covenant for one week - hepted or shebua if memory serves - then breaks in the midst of the week - that will be the confirmination.