Correct getMonthlyTotalRainfall2 function