how electric unit and its cost calculated by the companies