Determining the duration of comparative clinical trials while allowing for cure