Slightly strange question, but hopefully someone can help.
In essence, if the time was 12pm the the elapsed percentage would be 50%, 6am would be 25% and 16pm would
24hours are 100% so 24/currentTime = result 100 / result = % ;)