Calculate Duty Cycle From Pulse Width