Answer in Details
Your question seems to be about whether Lord Shiva (Swamy) will accept the recitation of a sloka (sacred hymn) even if someone is not able to visit home for 7 days, possibly during a vacation or period away from home.
According to Lord Shiva’s teachings and the philosophy found in Shaivism, devotion (bhakti) and sincerity of heart are of utmost importance. Lord Shiva is known as "Bholenath," the easily pleased God, who accepts pure-hearted prayers and offerings without strict formalities. The recitation of slokas, mantras, or prayers, when done with devotion and a pure mind, is always accepted by Lord Shiva, regardless of the devotee’s physical location.
Scriptures and practices also emphasize that Lord Shiva is omnipresent and does not reside in one particular place. As the Lingashtakam states:
"Yat phalum samprapnoti kalpakoTi shatairapi
Tat phalum sampravapnoti lingasyo parchedanam"
(Whatever merit is acquired over millions of kalpas can be acquired by merely offering worship to the Shiva Linga.)
This means your devotion and recitation reach Shiva wherever you are. If you cannot go home or to a temple for 7 days, you can still connect with Lord Shiva through your prayers, meditation, or chanting His names and slokas. What matters most is your sincerity and intention.
So, yes, Lord Shiva will accept your sloka and prayers, regardless of where you are, as long as it is offered with a pure heart and true devotion.