Bhavishya Purana (Jyotisha Selections) · by Vyasa
Chapter 10 · Months, the Adhika Masa and Tithi Rules
मासाधिमासतिथिनिर्णयः
एकादश्युपवासं तु द्वादशीयोगतश्चरेत् ।दिवायोगे तु संपूर्णां त्यजेदुभयपूर्वतः ॥ ३४ ॥
In the full Bhavishya Purana this is Madhyama Parva part 2, chapter 7, verse 34.
Keep the Ekadashi fast when it is joined with Dvadashi. If the joining is by day and Ekadashi is on both days, leave the earlier full one.
Simple meaning: Fast on Ekadashi joined with Dvadashi. If it runs over two days with a day joining, fast on the later.
रात्रियोगे तु संपूर्णा सोपास्यैकादशी सदा ।
With a night joining, the full Ekadashi is kept. A bright-half seventh joined with the sixth is honoured too.
निशि तु स्याद्यदा षष्ठी सप्तमी नवमी दिवा ।
When the sixth falls at night and the seventh by day, fast on the sixth alone to please the Sun.
एवं त्रयोदशीं कृष्णां विधिप्राप्तां विना द्विजाः ।
A fast on the dark thirteenth may please Shiva, even when the rule is not met.