Utils to calculing the weighted geometric average