Deductions & credits

Can anyone confirm if my proposed calculation above is correct?  I have not seen in TurboTax how home office expenses are actually combined for two homes.  Does TurboTax consider the amount of time spent in each office (as above) or just add together the full year expenses for each location?  Thanks again.