Cost of electricity calculation