Voltage calculator