The portion of total election costs in each county which shall be allocated to the public agency requesting a special election pursuant to RCW 80.52.040 shall be equal to the total cost of conducting that election multiplied by a quotient the numerator of which is the product of the number of registered voters in that county eligible to vote on the major public energy project bond measure or measures and the number of such measures submitted at that election and the denominator of which is the sum of the products of the number of registered voters in each jurisdiction for which candidates or measures appeared on the ballot at that election and the number of offices or issues attributable to that jurisdiction.