A system and method for charging batteries. A recirculation control valve controls the flow of the recirculation exhaust gas in the recirculation passage. The remaining run-time is determined by subtracting the duration of the integrating from the total run-time.