fixed redundancy problem when detecting days, months, and years that were out of bounds