class AnalyticsUtils {

    public static Double calculateYearlyWeightedAverage( Double year1Value, Double year2Value, Double factor )
    {
        return Precision.round( (year1Value * ((12 - factor) / 12)) + (year2Value * (factor / 12)),
            DECIMALS_NO_ROUNDING );
    }

}