If our microcontroller is powered by a laptop, but an external IC chip is powered by commercially available batteries, how would the "total input voltage" be calculated?

The laptop, if used can not be connected to an electrical outlet. Any parts of the device connected to the laptop do not count in counting up the total voltage. It is only the outside batteries voltages that are added up to in some combination of series and parallel to not exceed 12 V