How Do I Calculate the % of HOA Fees Are Deductible for a Home Office

An annual income percentage is split between two home offices. Residence #1 is occupied for the first 5 months of 2024 and  residence #2 is occupied for the 7 months in 2024. Then residence number 1 represents 42% of the annual income and residence represents 58% of the annual income (stating the mathematical obvious). Both residences have HOA dues. My question is if office #1 occupies 15% of the residence square footage (100 sq. ' of a 688 sq. ' condominium) then how much of the HOA fees are deductible? I suppose the same calculation would go for office #2 which is 5% of the residence square footage.