Sayyiduna Ali (may Allah be pleased with him) said: "Her waiting period will be the longer of the two periods."