Delaying action on State Change

PeterH:
Just to clarify:

If the switch goes low before the motor has rotated for the full time, you want it to stop and reverse back to its starting point?
It doesn't have to stop prior to the full prescribed time, it can just complete the time, dwell for some amount of time, and return. I suppose a debounce at that point would make sense?

What happens if the switch goes high again before it has reached the starting point?
If it goes high while it is returning, It could just finish returning and if it is high still, it could start the loop over

The motor is unlikely to be completely consistent about how far it travels in a given time (especially if you are stopping and reversing it). How concerned are you with the exact position of the motor?
I figured this would happen and am building a manual override with buttons in another part of the code, but i am thinking this should be good enough for now. There is a potentiometer attached to the motor that i could use to treat it like a servo, but i think that would require other hardware (op amp?) that is beyond my learning point as of now.

thanks for looking!