When is it Sunnah to slaughter the 'aqīqah?
All praise is due to Allah, and may peace and blessings be upon our Master, the Messenger of Allah.
It is Sunnah for the 'aqīqah to be slaughtered on the seventh day from the birth of the newborn. According to the sounder position, the day of birth itself is counted as the first of the seven days. Thus, for example, if the child is born on a Saturday, the 'aqīqah is to be slaughtered on the following Friday. If the child is born at night, the count begins from the day that follows. And Allah Almighty knows best.
What are the Sharia consequences when the sacrificial time for the uḍḥiyyah comes to an end?
All praise is due to Allah, and may peace and blessings be upon our Master, the Messenger of Allah.
If the sun sets at the end of the last of the Days of Tashrīq and the sacrificial animal (uḍḥiyyah) has not yet been slaughtered, then its prescribed time has elapsed. Should one slaughter it thereafter, it will not be considered a valid uḍḥiyyah.
However, if the sacrifice was vowed (mandhūrah), then it remains obligatory to slaughter it — and it shall be carried out as a make-up (qaḍā') of the vow, with its meat distributed in the rightful channels designated for such sacrifices.
It is stated in Bushrā al-Karīm (p. 702): "If one slaughters after the sunset of the last of the Days of Tashrīq... it isn`t considered a valid uḍḥiyyah, unless it was vowed — in which case it is carried out as qaḍā'."
And Allah Almighty knows best.
What is the ruling on someone who eats or drinks thinking that the sun has set, then realizes that it has not yet set?
Whoever eats or drinks believing that the sun has set, then later discovers that it has not yet set, their fast is invalid, and they must make up that day after Ramadan. It is not permissible to break the fast before confirming sunset—either by seeing it, through personal reasoning, or by relying on the statement of someone trustworthy in their religious commitment.
What is the ruling on preparing food for someone who is not fasting in Ramadan?
It is forbidden to prepare food for someone who is breaking their fast without a valid excuse in Ramadan.
Doing so would be assisting in sin, and assisting in sin is itself a sin.
Allah says {what means}: "but help ye not one another in sin and rancour" [Al-Mai`dah/2]