added a method to calculate the degree hour