Custom battery pack size calculation