Limit the maximum charging percentage of your battery.
Free battery status monitor for the Mac.
The application shows the estimated battery time remaining.