Surya Siddhanta
प्राग्यायिन्य् अधिके +अतीतो वक्रिण्य् एष्यः समागमः। ग्रहान्तरकलाः स्वस्वभुक्तिलिप्ताः समाहताः॥
When the longitude of the one moving eastward is greater, the conjunction (samagama) is past ; but when that of thfe one that is retrograding is greater, it is to come. Multiply the distance in longitude of the planets, in minutes, by the minutes of daily motion of each.
english translation
prAgyAyiny adhike +atIto vakriNy eSyaH samAgamaH। grahAntarakalAH svasvabhuktiliptAH samAhatAH॥
hk transliteration by Sanscript