Fix period validation logic to account for earliest/latest termini