Sizing of a solar charge regulator