My home office is in the back house of an investment property that I own. Is this still a home office? If not, how do I take deductions for this office?

I rent the main house out to tenants, and I work out of a separate guest house in the backyard. Do I calculate deductions in a similar way to a typical home office, or should I be paying myself rent for this office and deducting that?