Fix effective average formula