left office on 28 January 1770. He died on 14 March 1811, 41 years and 45 days later. In recent years, the prime minister who lived the longest after leaving office was Edward Heath, whose term ended on 4 March 1974. He died on 17 July 2005, 31 years and 135 days later. Shortest-lived after office The prime minister who lived the shortest period after leaving office was Henry Campbell-Bannerman, who resigned on 3 April 1908 and died just 19 days later on 22 April 1908, while still resident in 10 Downing Street. General elections Most PMs in office between general elections There have been two intervals between general elections, both in the 18th century, when on both occasions five successive prime ministers were in office. Between the general elections of 1761 and 1768: the Duke of Newcastle (resigned 26 May 1762), Lord Bute (resigned 8 April 1763), George Grenville (resigned 10 July 1765), Lord Rockingham (resigned 30 July 1766) and Lord Chatham (until dissolution of the parliament). In the shorter interval between the general elections of 1780 and 1784: Lord North (resigned 27 March 1782), Lord Rockingham (second ministry, died in office 1 July 1782), Lord Shelburne (resigned 26 March 1783), the Duke of Portland (resigned 18 December 1783) and William Pitt the Younger (until dissolution of the parliament). In modern times, since members of the House of Lords ceased to hold prime ministerial office (after 1902), there have been two occasions where there were three prime ministers in office between general elections: Between the general elections of 1935 and 1945: Stanley Baldwin (retired 28 May 1937), Neville Chamberlain (resigned 10 May, and subsequently died 1940) and Winston Churchill (until dissolution of the parliament). Since the 2019 general election: Boris Johnson (resigned 6 September 2022), Liz Truss (resigned 25 October 2022), and the incumbent Rishi Sunak (25 October 2022 to present). Most general elections contested as party leader The most general elections contested by an individual is six. H. H. Asquith contested the January 1910, December 1910, 1918, 1922, 1923 and the 1924 general elections. The most general elections lost by an individual is four. Charles James Fox was unsuccessful after contesting the 1784, 1790, 1796 and 1802 general elections, and subsequently never became prime minister. The most general elections won by an individual is four. Robert Walpole, Lord Liverpool, William Ewart Gladstone, and Harold Wilson each won four