Sean Wei says to YSITD
function to8(hh) return hh<17 ? hh + 8 : hh - 16