To calculate the cost per unit of electricity generated by a power station, key factors include the generator's output power, fuel consumption rate, and fuel cost. The formula used is R*C/P, where R is the fuel consumption rate in gallons per hour, C is the cost of fuel per gallon, and P is the power output in kilowatts. For hydroelectric power stations, like the Three Gorges Dam, the variable costs are minimal since there is no fuel expense, primarily involving maintenance and operational costs. The main expense is the fixed cost of constructing the dam, which should be divided by the total electricity produced over its expected lifespan. A lifespan estimate of 40 years is considered reasonable before significant overhauls are needed, such as turbine replacements. This calculation focuses on production costs rather than market prices for electricity.