Thalathata ayyam fi al-hajj specifies three fasts within the recognized Hajj period for this substitute.
Wa-akhiruhā yawm ʿArafah places the last permissible day of the three at Arafah. The three must be completed before the Day of Sacrifice; if this opportunity is missed, the next clause imposes a different rule.