Call them $m_1,m_2$. They are compressed to their center of masses, if you wish. If the initial distance at $t=0$ is $d$, is there a formula or an efficient way to calculate the distance between them at time $t$, provided, of course, that they haven't collided?
The problem is the circularity of the speed. It's not mere acceleration that pushes the masses together. If the masses approach each other with acceleration, the force will increase faster than it does, and then the masses are pushed into each other with more than just acceleration. This also means that it is not mere change in acceleration, because you could argue similarly. It must be something more "exponential" not polynomial.
But my knowledge of calculus doesn't help me here.