Fix time remaining calculation. Display when battery is charged

Hi Marcel,

Here are my latest changes. The time remaining calculation should be more accurate now.

Also, when the battery is fully charged, `$timerem` is 0, so it is nice to handle that.