fulfill the process of finding slots in temp_free_slot[i]
fulfill calculation of factor in temp_free_slot[i]