modified the calculation of hour of grandfather_clock.rb