Two timers: one for work, one for rest. When either reaches 0, it goes back to the reset value, and then the other timer starts. Changing the input sliders changes the reset value.