Create StateofCharge.c