mAh is a measure of the storage capacity of a battery. The number itself indicates for how long the battery would last, in hours, if delivering a current of 1mA. Thus if you knew what current a device drew, you would know how long the batteries would last.
So for example, if we were to assume...