Does anyone know how long it could take to replace an existing pacemaker / defib?

Replacement of a pacemaker or ICD usually only takes a few minutes, assuming the leads are working appropriately. The new device is placed in the same area where the old one was and the leads are attached to the new one. If the leads need to be changed then it becomes a more complicated procedure and takes longer.