What exact moment must the intention (Niyyah) for Tayammum be formulated in the heart?

Dry Ablution (التيمم): Validity Conditions & Permissible Earth