When to schedule exam and not lose credit?

I have my first credit expiring September 13th and wanted to know do you have to just sit for the exam before the date or sit and have your score back in order to not lose a credit?