dead time calculation