i have a Mi5 and had a similar problem(only charged about 15% to 30% in about 8h), changed the cable and now works just fine.
open