displayedBatteryHealthPercent = max(80, actualBatteryHealthPercent);
(I suspect the health figures displayed are already somewhat fudged to try and downplay the reality of battery degradation?)