Corrected GetHours

Changed to switch instead of math.