Malbim Ayelet HaShachar Klal 78
Can copy this into an AI, or connect the whole library to your assistant. For deeper learning, you can directly use the original seforim, sites, and apps.
ויש הבדל בין אם בא המספר בתחילת המאמר ובין אם בא בסופו:
And there is a difference between whether the number is at the beginning of an expression or whether it comes at the end:
שאם בא המספר אחר הפעל יהיה לפעמים עד ולא עד בכלל.
If the number comes after the verb, it will sometimes be up to but not including.
אבל אם יקדים את המספר – כמו "שבעת ימים מצות תאכלו", "שבעת ימים תהיה בנדתה" – צריך שבעה ימים שלמים ולא אמרינן מקצת היום ככולו. (מצורע ס' קעב)
But if the number precedes it – as with שבעת ימים מצות תאכלו (Seven days shall you eat unleavened bread)¹⁵¹, שבעת ימים תהיה בנדתה (she shall be in her impurity seven days)¹⁵² – it needs seven full days, and we do not say part of the day is like all of it.
footnotes: ¹⁵¹ Exodus 12:15. ¹⁵² Leviticus 15:19.