if your seconds will go ten by ten
seconds = seconds + 10
minutes = minutes + floor(seconds/60)
seconds = seconds % 60
hours = hours + floor(minutes/60)
minutes = minutes % 60
days = days + floor(hours/24)
hours = hours % 24
startposition = 100
endposition = 600
sprite.X = startposition + (hours/24 + minutes/1440+ seconds/86400)*(endposition-startpositon)