How Long Do i Have to Wait After Failing the CPA Exam?

When can i register for the exam if i fail it ?