Displaying hours as a float can be confusing and not user-friendly. For example, seeing "11.7" requires users to calculate the actual hours and minutes, which adds unnecessary complexity. Please consult with the system team to explore a more intuitive format for representing time, such as separating hours and minutes (e.g., "11h 42m" or 11:42) for better clarity.
can we modify the routine to take index, max variables as it is ( without subtracting -1) and adjust the conditions inside the routine ( by removing = in the <= )?