A Smart-Charging Algorithm Development Considering Uncertainties in the System