how many attempts for ca foundation