Order of an element in a direct product