Shorten calculation of "hour"

It's not exactly equivalent as your code could output an hour of 12 while mine strictly limits it from 0 to 11. Should be fine though.