fixed pulse length calculation