Removed the confusing offsets aroung the minimum duty cycle and put all comparisons properly instead