set duration of download