How to calculate consumption rate