Merge "Add API to compute charge time remaining." into pi-dev