For milestones with multiple files submitted: the most recent submission is what triggers the late flag. This prevents gamed submissions where the first, on-time submission, was a placeholder to evade the late flag and the real submission was submitted after the due date.