Calculation of payments for electricity