Hi Barbara,
You should be able to model this type of system by using one of the financial models for behind-the-meter (BTM) battery storage: Commercial, Residential, or Third Party Ownership Host / Developer. Those models have inputs for the building or facility load, and dispatch storage to reduce the building owner's monthly electricity bill.
Best regards,
Paul.