@mkamzati, you could do it as advised by @wroos following the image shared below:
In the survey tab of your XLSForm:
Data entry screen as seen in Enketo: when End time is less then the Start time
Data entry screen as seen in Enketo: when Start time and End time are same
Data entry screen as seen in Enketo: when End time is greater then the Start time
Reference XLSForm:
TIME.xlsx (9.9 KB)