Hi There i have a Code handling two events simultaneously, one event is advertisement And the other is scanning which is done every half an hour. the average current consumption for only advertisement is 75 mA and average current consumption for advertisement plus scanning , happening half an hour once is 150 mA. How should i calculate the battery life in such a case, usually it is batter capacity / average current consumption. But here you have two events are happening
should it be like this result avg current = 75 * (time in hour ) + 140 *(time in hour) - for a period of one hour. then, battery life = battery consumptiuon/ result avg current.