Text this: Charge Scheduling of an Energy Storage System under Time-of-Use Pricing and a Demand Charge