Fixed arithmetic and logical errors in duration validator.
Fixed arithmetic and logical errors in duration validator.

SandstoneHPC/sandstone-slurm-assist,SandstoneHPC/sandstone-slurm-assist,ResearchComputing/oide-slurm-assist,SandstoneHPC/sandstone-slurm-assist,ResearchComputing/oide-slurm-assist,ResearchComputing/oide-slurm-assist