BATTERY CABINET CURRENT ALGORITHM