a window of opportunity

a ˌwindow of opporˈtunity

a limited period of time when you can do something that you want to do or need to do: The government’s difficulties provided the opposition with a window of opportunity to present an alternative policy to the voters.
See also: of, opportunity, window