Suppose I have these time variables:
start_time, end_time, current_time
I would like to know how much time is left in percent, checking current_timeand delta time between start_timeandend_time
IE: suppose the interval is 24 hours between start_time and end_time still between current_timeand end_time, there are 6 hours left until completion,% 25 should be left.
How can I do that?
source
share