There is no set time; however, it is best to have the police called to the scene and a report made immediately. Additionally, if the damage to the cars is greater or equal to $500, you are legally required to report the accident to the police.
If a report is made later, often the insurance company places less value on the report because it will not usually contain or document an on-scene investigation.