Study duration for three-arm non-inferiority survival trials designed for accrual by cohorts