Conventional wisdom suggests that the agent gets its commission when you have an accepted offer and the deal is completed.