I'm trying to find the time taken for a Hohmann transfer orbit. I've tried using all three of these equations, but when compared against known periods they all evaluate to the same wrong answer, 100 to 1000 times as much as what it should be. The only explanation I can think of is that I'm using the wrong units as input, output, or both. Currently, I'm inputting the semi-major axis and radii in meters, and the standard gravitational parameter in whatever units Wikipedia lists here are called [m^3 s^−2]. I'm interpreting the result as seconds.
$$t_{hoh} = \frac{1}{2} \sqrt{\frac{4 \pi^2 a_H^3}{\mu}} = \pi \sqrt{\frac{(r_1+r_2)^3}{8 \mu}}$$
$$T_{orbit} = 2 \pi \sqrt{\frac{a^3}{\mu}}$$
Just in case I made some egregious mistake in my code, here it is:
t = (2 * Math.PI * Math.Sqrt(Math.Pow(((rH + rL) / 2), 3) / u)) / 2;
t = (1 / 2) * Math.Sqrt(((4 * Math.Pow(Math.PI, 3)) * (Math.Pow((rH + rL) / 2, 3))) / u);
t = Math.PI * Math.Sqrt(Math.Pow(rH + rL, 3) / (8 * u));
What are the proper input and output units?