Growing Degree Day Accumulator

Paste a season of daily highs and lows to add up growing degree days, cap heat above an upper cutoff, and forecast how many days are left before the crop reaches a target.

one day per line: high, low in the selected unit; blank lines are ignored
switching converts the table, base and cutoff
the crop's development threshold; below it nothing is counted
highs above this count as the cutoff; leave blank for no cutoff
degree-days to reach; leave blank to only accumulate

Each day contributes the daily mean minus the base temperature, and never less than zero: the mean is (high + low) / 2, a low below the base is raised to the base, and a high above the upper cutoff is lowered to the cutoff. The daily values are added into a season total. The average per day is the total divided by the number of days, and the projection to a target divides the shortfall by that average and rounds up. These are heat units, not a growth model: a crop's response to heat, moisture stress, day length and cultivar is not simulated, the cutoff is applied to the daily high only, and a short series makes the forecast rough. Up to 400 days and 20,000 characters are read, temperatures must lie within -80 to 60 °C (or -112 to 140 °F), and the cutoff must sit above the base. Everything runs in your browser with no storage, uploads or network access.