סימן קנט סעיף ג
יֵשׁ אוֹמְרִים, דְּאִם הִתְפַּלְּלוּ הַקָּהָל עַרְבִית, אַף עַל פִּי שֶׁעוֹד הַיוֹם גָּדוֹל, אֵינָהּ יְכוֹלָה עוֹד לְהַפְסִיק בְּטָהֳרָה, שֶׁתִּמְנֶה מִיּוֹם הַמָּחֳרָת, מֵאַחַר שֶׁהַקָּהָל כְּבָר עָשׂוּ אוֹתוֹ, לָיְלָה. וְיֵשׁ אוֹמְרִים, דְמֻתֶּרֶת, וַאֲפִלּוּ עָשׂוּ הַקָּהָל שַׁבָּת. וְיֵשׁ לִזָּהֵר לְכַתְּחִלָּה. וּבְדִיעַבַד אֵין לְהַחְמִיר, וִיכוֹלָה לְהַפְסִיק בְּטָהֳרָה כֹּל שֶׁעֲדַיִן אֵינוֹ בֵּין הַשְׁמָשׁוֹת אֲבָל אִם גַּם הִיא הִתְפַּלְּלָה עַרְבִית, וּמִכָּל שֶׁכֵּן כְּשֶׁהִדְלִיקָה נֵרוֹת לְשַׁבָּת אוֹ לְיוֹם טוֹב, אַף עַל פִּי שֶׁעֲדַיִן הַיּוֹם גָּדוֹל. אֵינָהּ יְכוֹלָה עוֹד לְהַפְסִיק בְּטָהֳרָה. בַּקַּיִץ אֲשֶׁר בְּהַרְבֵּה קְהִלוֹת מִתְפַּלְּלִין עַרְבִית בְּעוֹד הַיּוֹם גָּדוֹל, שֶׁהִיא צְרִיכָה לְכַתְּחִלָּה לְהַפְסִיק בְּטָהֳרָה קֹדֶם לָכֵן, כְּמוֹ שֶׁכָּתַבְתִּי, אֲזַי כְּשֶׁיַגִּיעַ סָמוּךְ לְבֵין הַשְׁמָשׁוֹת, יֵשׁ לָהּ לִבְדֹּק אֶת עַצְמָהּ עוֹד הַפַּעַם, כִּי עִקַּר הֶפְסֵק טָהֳרָה הוּא בָּעֵת הַיוֹתֵר סְמוּכָה לְבֵין הַשְׁמָשׁוֹת וּבְדִיעֲבַד, אִם לֹא בָדְקָה אֶת עַצְמָה שֵׁנִית, אֵין לְהַקְפִּיד. וַאֲפִלּוּ לֹא בָּדְקָה אֶת עַצְמָהּ אֶלָּא שַׁחֲרִית וּמָצְאָה טְהוֹרָה, בְּדִיעֲבַד סַגִי בְּכָךְ.
Some authorities are of the opinion that if the congregation had recited the Maariv prayer, although it is still daytime, she cannot perform the hefsek taharah (on that day), in order to start counting3The seven clean days. from the next day; since the congregation has already accepted it as night. Other authorities hold she is permitted to do this, even if the congregation already ushered in the Shabbos. It is best to be stringent about this, but if she had already done so, you need not be stringent, and she may perform the hefsek taharah so long as it is not yet twilight.4Ramah 196:1. However, if she too had prayed Maariv, and certainly if she had already lit candles for Shabbos or Yom Tov, although it is still daytime, she can no longer perform the hefsek taharah (on that day.)5Although the Sidrei Taharah and Chochmas Adam agree with this interpretation of the Ramah, the prevailing custom is to be lenient and allow her to make the hefsek taharah so long as it is before sunset (Igur, Maharil, Gra. See Aruch Hashulchan). During the summer, when many congregations pray Maariv when it is still daytime, she should make her hefsek taharah before that time, as I have already stated. Then, when twilight draws near, she should examine herself again, for the principal time for hefsek taharah is as close to twilight as possible. In the event she did not examine herself that second time, you need not be concerned about it. Even if she only examined herself in the morning,6Or even during the previous night. (Chazon Ish) when she (checked and) found herself clean, post factum, this is sufficient.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)