Calculating days/hours per year below a certain temperature?

While it might be feasible, it is hard. There are other ways though, like the degree days integration, which tries to calculate what you hope to achieve:

This one might be geared towards the Netherlands, but there are others like it. See also for instance this thread: