Calculate the battery pack capacity formula