Wrote toy eslip function to compute cost per kwh