Text this: A study of residential and commercial building for hybrid photovoltaic and battery system