Fixing computation of signal duration