changing deadline to duration