When is fitrah liability determined?

Sadaqat al-Fitr: Liability, Amounts, and Timing