Ruby: Script to find no. of hours in a year