o2 consumption calculation