I need to convert time (in the format HH:MM) into decimal values as in 1,0 for one hour, 0,5 for half an hour, 0,25 for 15 minutes and so on. I have this code sample though