You say you have a specific set of orbital elements? Such a set must be in reference to a primary body. For asteroids, comets and similar objects, that primary body is almost always the sun, in which case the orbital period is the period for one orbit around the Sun.
If the object in question make a near pass of Earth its actual path through space can be modeled (or approximated) with three different Keplian orbits, each with possibly different orbital elements and primary body: 1) an orbit around the Sun valid for (long) before the Earth passage, 2) an orbit with Earth as primary for time around the Earth passage part, and 3) an orbit around the Sun valid (long) after the passage. Note that the Earth orbit segment will be a so-called hyperbolic orbit (as opposed to an elliptic orbit), meaning that the orbit is not closed (perodic) and that it therefore does not make direct sense to talk about an "orbital period". Each of the first and last orbit (those with the Sun as primary body) may or may not be closed, but for each that are closed you can then talk about orbital period around the Sun for that orbit.
If this is not helpful to you, perhaps you could state exactly what data you have and what you want to obtain?