@carlosmn Are you allowed to have commits with negative times? If so, this routine will definitely fail as it is.