orbital period calculation