S-Corp doesn't exist from the IRS perspective. It's all you. The whole point of S-Corp is to be a "pass-through" entity for income tax purposes.
As such, S-Corp renting your residence is essentially you renting your residence from yourself, and this is a tax neutral transaction. It's neither a deduction nor income, no matter the duration.
You're trying to use the 14-days rental rule to exclude S-Corp income from taxes, but this can't work because you're renting from yourself. It could have worked had it been someone else's S-Corp, and you'd rent them your home for up to 14 days - then the owners would be able to take a deduction and your income would be excluded for tax purposes.
But no, in the scenario you're describing it cannot work.
What you can do is a home office deduction, which requires exclusive and regular use. You can designate a room in your home which is used solely for conducting your business (not once a month - exclusively all the time), and deduct all the expenses related to that room. Home office deduction is considered one of the more obvious audit triggers.