fix that program does not count hours when only ARRIVAL event in the list