Typical scaling usually uses the formula
OUT = (IN - in_min)*(out_max - out_min)/(in_max - in_min) + out_min
In your case out_min = 0m, out_max=10m.
Most of the 4-20mA transmitters I use have 12 bit resolution so 0-4096 counts
rise/run gives us m = 10/4096, our multiplier or scaling factor. where with the slope intercept equation below y = output (0-10m) and x = counts from transmitter.
y=mx+b generally comes to mind