A planet of small mass m moves around the sun of mass M along an elliptical orbit such that its minimum and maximum distance from sun are r and R respectively. Its period of revolution will be: