I have a battery sensor that calculates the time until the battery is empty.
It returns an int value in seconds or something like 2hr 30min if I convert it etc.
{{ (((((states('sensor.battery_state_of_charge') | int) - 5) / 95 * 30) / (states('sensor.battery_power') | int | abs) * 1000) * 60 * 60)|timestamp_custom('%-H hours %-M minutes', false) }}
How can I add this value to the current time and therefore obtain the time when it will be empty.
So if now is 11pm, battery empty sensor is 2hr, the empty time should be 1am