Surya Siddhanta
स्वमन्दपरिधिक्षुण्णा भगणाम्शोद्धृता कलाः । कर्क्यादौ तु धनम् तत्र मकरादाव् ऋणम् स्मृतम् ॥
The quotient multiplied by the (rectified) periphery of the first epicycle of the planet and divided by 360° (becomes the first equation of the planet's motion) in minutes. Add this equation (to the mean diurnal motion of the planet) when the first Kendra is greater than 3 signs and less than 9; but when the first Kendra is greater than 9 signs or less than 3, subtract the equation of the motion from it: (thus you have the true diurnal motions of the Sun and Moon, and the manda-sphuṭa motions of the others which are equivalent to their heliocentric motions.)
english translation
svamandaparidhikSuNNA bhagaNAmzoddhRtA kalAH । karkyAdau tu dhanam tatra makarAdAv RNam smRtam ॥
hk transliteration by Sanscript