Eric built himself a battery monitoring system based on the ATmega328 Development Kit he received as a prize in our 7400 contest. He drained a 9V battery with 100mA of current and monitored the voltage drop until total depletion. He used this data to estimate how much time is left until depletion.