بسم الله الرحمن الرحيم
If you recite it sincerely, it shall work whether you recite it for forty days or daily or occasionally. Hadith speaks in common that no jinn and Satan will ever enter into a house where Surah Baqarah is recited.
Allah knows Best!
Darul Uloom Deoband
This answer was collected from the official ifta website of Darul Uloom Deoband in India.