There is just about time to squeeze in a sneaky general election before October 31. Johnson has insisted he will not call a snap election – but he could be forced into it.
Jeremy Corbyn has said he could call a vote of no confidence in the government when parliament returns on September 3. The Commons vote would be held on September 4.
Ominously for the prime minister, several Tory MPs have not ruled out siding with Labour to bring down their own government in order to stop no-deal Brexit.
If the government loses it would have until September 18 to try and persuade MPs to change their minds and win a second confidence vote.
Corbyn could try to cobble together a majority with other parties to take over as prime minister without holding an election.
There has also been talk of a government of national unity being assembled by MPs of all parties under the leadership of a senior pro-Remain Tory or Labour MP.
If not, a general election would be triggered. Parliament would dissolve 25 working days before polling day.
This means the earliest day a general election could be held would be October 25. Just one week before the October 31 exit day.
If Labour wins the election, Corbyn could then theoretically ask the EU to extend Article 50 at the last minute.