Missing in this calculation are the guild-level permissions for the @everyone role itself, something which seems like it should be included here, since @everyone permission overwrites are accounted for, and @everyone's base permissions of course apply to all roles