AICPA Ethics Exam

I purchased the exam online from AICPA and it seems the time on it is 8.50 hours. I've heard that many people re-take the exam if they fail the first time- are those retakes included in the 8.5 hours? If I don't pass within that time frame, do I need to repurchase it?