Are these all separate fields in excel? And do you want the solution as an excel formula or uipath solution?
It seems like the easiest would just be relatively simple excel formula, but it can be done using uipath fairly simply as well by creating a datetime variable for Intime, a datetime variable for Outtime, then figuring out the TimeSpan between the 2 datetime variables
Use Datetime.ParseExact to construct the 2 datetime variables for each row (InTime and OutTime). You will want to use this string/datetime formatting guide for help with this: Custom date and time format strings | Microsoft Learn
Please let me know if you are having trouble with any part of this. Let me know what you have tried and which part is not working. I would highly recommend attempting to figure it out on your own instead of having someone create it for you, as that is the only way you’ll be able to learn & apply that learning to future projects