Base: Add base code for duration input box

This will replace the duration slider in program and run-once pages