The accessory dwelling unit, excluding any garage area and other nonhabitable spaces, shall not exceed 1,100 square feet, or 50 percent of the total square footage of the primary residence, excluding any garage area and other nonhabitable spaces, whichever is less.