You will need to determine the SQL query to extract the latest value of the time left on the battery and wrap that in a ${SQL:} macro.
One way to determine the necessary SQL is to use the legacy report writer tool on the NPM server, and use the 'Show SQL' menu option.