inbreathing calculation