parseDurationInput

Parses input as a non-negative whole number within 0..Int.MAX_VALUE and validates it against bounds.