Bhavishya Purana (Jyotisha Selections) · by Vyasa
Chapter 11 · Tithi, Nakshatra and Weekday Yogas; Good and Bad Times
तिथिनक्षत्रवारयोगाः शुभाशुभकालश्च
रात्रिस्पर्शे यदि परं रजन्यामपि चाष्टमी ।सप्तमी सार्धयामं च रोहिणी वा न संस्पृशेत् ॥ ३५ ॥
In the full Bhavishya Purana this is Madhyama Parva part 2, chapter 8, verse 35.
It may touch only the night, the 8th being there at night too. The 7th may last a yama (three-hour part of the day) and a half. Or Rohini may not touch it. (Our text is unclear here: the result of these conditions is in verses not in our book.)
Simple meaning: When the eighth day touches only the night, check how long the seventh lasts and whether Rohini is there.
द्वादश द्वादशीर्हन्ति तस्मात्तथाचरेद्बुधः ।
A wrong choice of day loses the merit of twelve Dvadashis. A wise person checks the rule.
न वर्धते द्वादशी तु तदा त्वेवं व्यवस्थितिः ।
If Dvadashi does not grow, a forest-dweller keeps the later Ekadashi. A householder keeps the earlier one.
पूर्वैरेकादशी त्याज्या वर्धते चेत्तिथिद्वयम् ।
If two moon days grow, leave the first Ekadashi. Fast on the later one.