If you prefer for clarity, write the fraction as 12/24, 6/24 etc.
Add another variable
If hrs > 0.5 Then x = x+1
If hrs > 0.25 and hrs <=0.5 Then w = w+1