a quick note: that does not account for the voltage dropped by the diodes, but the concept is the same.