Locate the milliamp-hour rating stamped on the battery and record this value. Let's use an example of 2,500 milliamp-hours (also often shown as "mA hours"). This would be a typical value for a higher quality AA battery.
Locate the current rating marked on the device that you will be powering with the battery. You will need to know this value, since the battery discharge rate will depend on how much current is being drawn from the battery. This value will be expressed in amps or milliamps. For the example, we'll use 100 milliamps (also often shown as "mA").
Divide the value in Step 1 by the value in Step 2. In this example, this is 2500/100 = 25 hours. Therefore, the battery will power the device, or discharge, for 25 hours.