No idea where the timer ends. Assuming on the final hit of the boss?
Bit of spaghetti which was my fault and I do regret may come back to this.