Slightly optimized meters calculation code