As we all know that Kepler's third law states the square of the period is proportional to the cube of the average distance. Some of the part of the equation are just mere constants, and they are very vital.
After deriving the equation, we can get the formula.
T = sqrt { 4 * PI^2 /(GM) * [(R1 + R2)/2]^3 }