Battery wire calculation