For most exams, you’ll need to wait a period of 5 calendar days, beginning the day after you’ve taken the exam before retaking the same exam.
For CCIE or CCDE written exams, specifically, you’ll need to wait for a period of 15 calendar days, beginning the day after you’ve taken the exam before retaking the same exam.