5. Whenever two or more persons hold jointly one or more offices, the percentage of twenty per cent shall be calculated on the balance of the net amount of fees and emoluments remaining after deduction of three thousand dollars for each of such persons.