Pulse calculation update

convert puse width in time domain to frequency domain