If instead of the current you have voltage and watts, then the formula is (mAh*Volts)/(Watts*1000) = (hours). For example, if you have a 3000 mAh battery that runs at 5 Volts and 15 Watts, then the time that the battery will last for is (3000*5)/(15*1000) = 1 Hours.