Abstract: A machine for automatically batching coloring agents for paint or varnish is disclosed. The machine includes a computerized method for calibrating the amount of coloring agent dispensed with solenoid valves which calculate the viscosity and the delay time for opening and closing the valves so that coloring agents are dispensed with a minimum of less than plus or minus 1% error.