What this rule checks
Classical definition: If grahas other than Surya occupy both the 2nd and the 12th houses from Chandra, Durudhara Yoga is formed. In modern terms: At least one of Mars, Mercury, Jupiter, Venus or Saturn is in the 2nd house from the Moon, and at least one (the same planet cannot be in both) is in the 12th house from the Moon. The Moon is hemmed in by planets on both sides. The Sun is not counted. Rahu and Ketu are not counted either. Houses are counted from the Moon's sign: the Moon's own sign is the 1st. Source: Brihat Parashara Hora Shastra, Chapter 37, verses 7-10; Phaladeepika, Adhyaya 6, sloka 5 (V. Subrahmanya Sastri's translation); Jataka Parijata, Adhyaya 7, slokas 72-73 (V. Subrahmanya Sastri's translation).