Calculates the amount of rain for a year.