Hi,
or in other words:
how many % in one hour does the ciruit draw xx current? then multiply the current by the % and get the average mA for this situation.
one line per each situation until you get the sum of 100%.
then add all average currents.
Example:
95% it is idle with 0.1mA --> 95% x 0.1mA = 0.095mA
4% it is active with 10mA --> 4% x 10mA = 0.4mA
1% power burts with 50mA --> 1 % x 50mA = 0.5mA
now add up: 0.095mA + 0.4mA + 0.5mA = 0.995mA
If your battery can suply 3450mAh then: time = mAh / mA = 3450mAh / 0.995mA = 3467h
Klaus