The only validation I could add here is capping `time` to 0 <= time <= totalTime, but the range input does it automatically.