24.01.2023, 07:10
Map this event script to the fuel level % object. Change 1/1/1 to the object that stores the remaining time text.
Code:
value = event.getvalue()
totaltime = 22 * 60 * 60 -- 22 hours in seconds
remtime = totaltime * value / 100
formattimealt('1/1/1', remtime)