Hours in year ruby program