When a legal excuse ends during prayer time, what is the key legal inquiry?

Causes of Legal Obligations: Time, Worship and Purification