days of the election being called. Election date The term of the Assembly of Madrid expired four years after the date of its previous election. The election Decree was required to be issued no later than the twenty-fifth day prior to the date of expiry of parliament and published on the following day in the Official Gazette of the Community of Madrid, with election day taking place between the fifty-fourth and the sixtieth day from publication and set so as to make them coincide with other concurrent elections when possible. The previous election was held on 8 May 1983, which meant that the legislature's term would have expired on 8 May 1987. The election Decree was required to be published no later than 14 April 1987, with the election taking place no later than the sixtieth day from publication, setting the latest possible election date for the Assembly on Saturday, 13 June 1987. The Assembly of Madrid could not be dissolved before the date of expiry of parliament except in the event of an investiture process failing to elect a regional President within a two-month period from the first ballot. In such a case, the Assembly was to be automatically dissolved and a snap election called, with elected deputies merely serving out what remained of their four-year terms. Opinion polls The table below lists voting intention estimates in reverse chronological order, showing the most recent first and using the dates when the survey fieldwork was done, as opposed to the date of publication. Where the fieldwork dates are unknown, the date of publication is given instead. The highest percentage figure in each polling survey is displayed with its background shaded in the leading party's colour. If a tie ensues, this is applied to the figures with the highest percentages. The "Lead" column on the right shows the percentage-point difference between the parties with the highest percentages in a poll. When available, seat projections determined by the polling organisations are displayed below (or in place of) the percentages in a smaller font; 49 seats were required for an absolute majority in the Assembly of Madrid. Results Overall Elected legislators The following table lists the elected legislators sorted by order of election. Aftermath Government formation Investiture processes to elect the President of the Community of Madrid required for an absolute majority—more than half the votes cast—to be obtained in the first ballot.