Hello
Assume I have these datatime variables:
start_time, end_time, current_time
I would like to know how much time left as percentage by checking current_time
and the time delta between start_time
and the end_time
IE: Assume the interval is a 24 hours betwen start_time and end_time yet between current_time
and end_time
, there are 6 hours left to finish, %25 should be left.
How can this be done ?