Solar panel battery power generation rate calculation formula