A new government is formed by the Taoiseach appointed after each general election after receiving the nomination of the Dáil. All members of the government are deemed to have resigned on the resignation of the Taoiseach. Therefore, a new government is appointed where there is a new Taoiseach within a single Dáil term. The Constitution allows a Dáil term of no more than seven years, but a shorter period may be specified by law; this has been set as a maximum of five years. The Taoiseach may at any time advise the President to dissolve the Dáil, prompting a new general election. The President retains absolute discretion to refuse to grant a dissolution to a Taoiseach who has lost the confidence of the Dáil. To date, no President has refused the request of a Taoiseach to dissolve the Dáil.