If you fail the second time or third time for an undergraduate, then you are dismissed. When you pass a retake, the grade is calculated with the overall GPA.