How do you calculate battery life?
Divide the usable capacity in mAh by the average current in mA to get hours. For a device that sleeps and wakes, the average current is (active current × active time + sleep current × sleep time) ÷ the total period.

