Added conversion function to convert time values into [0-1] range