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 51.
If Ekadashi has even a small part and the Dvadashi is whole, the merit there equals a sacrifice. Break the fast on the 13th.
Simple meaning: With a bit of Ekadashi and a whole Dvadashi, the merit equals a sacrifice. Break the fast on the thirteenth.
एकादशी द्वादशी च परेऽहनि न लभ्यते ।
If neither day falls on the next day, do not fast then. It may bring loss.
एकादशी दशाविद्धा द्वादश्यां लिप्तिका यदा ।
If Ekadashi is mixed with the tenth and a trace touches Dvadashi, the next day matters.
तदा दिनद्वये त्याज्या पारणं च नियोगतः ।
Then leave it on both days. The break of the fast follows the rule.