There is provided a method for dynamically determining a breath related parameter, which includes averaging a breath related parameter over a first period of time, calculating a breath related value over a second period of time and adapting the duration of the first period of time according to the calculated breath related value.