Updated the duty cycle% calculation segment