duration check