Battery and AVR?

Here is the scenario:

You have connected a coin battery of 3 volt to an AVR which operates in the range of 1.8V-5V.

How do you measure how long will the battery last?

Is there some kind of formula?

Can anybody suggest a book that deals with using batteries?

Regards

The cell manufacturer should have data on discharge rates.

Leon

battery capacity down to some particular voltage.

Most importantly, the duty cycle of power consumption by the AVR - based on your firmware’s design and use of sleep modes.