Added battery lifetime calculations