Add the square footage of both home office spaces and divide by two to get an average. Also add the total square footage of both residences and divide by 2 to get an average, and then use the total of all expenses. There is no way to add two separate office space calculations.