modified customer call for calculate duration