In T554S for an absence/attendance type, the minimum & maximum duration is to check for individual records (or occurrences) only.
For more complex checks, you need to use user code in the user function EXIT_SAPFP50M_002. This function is a customer function called after user input and pressing enter or save; in ABAP words a PAI or process after input function. This change can be implemented with enhancement PBAS0001.
Similarly EXIT_SAPFP50M_001 is used as PBO (process before output) of the initial screen and can be implemented in the same enhancement.
These functions use includes LXPAD02 & 01 respectively and may have been replaced by a copy include ZXPADU02 or 01.
Display the 02 include to see how an infotype record is validated. You can copy several parts of ABAP code in similar routines.
If required, discuss with an ABAP expert.