I just did this process and I was planning to be all exact like that too, but I found that it was too difficult to get it tuned perfectly. Your consumption will change as your corals grow, water changes will throw things off, and for me, there were just too many factors to deal with to get it right. It helped me very much to document my parameters in a spreadsheet so that I could see the changes over time. Also, I struggle with high pH, so I didn't want to continue to drive my pH up so dosing is suspended of pH is above 8.4. Instead of trying to be all mathematical and trying to get exact, I get it as close as I can, do weekly tests, supplement manually if needed. If supplementation was needed, then I adjust the pump rate. I base the adjustment on the impact that prior adjustments have had (i.e. if I needed to dose 100 ml and a prior adjustment corrected by 50 ml, then I will just double the value that the historical modification made based on my historical parameter spreadsheet). Many times supplementation is not necessary, but if it is, I do so before I adjust the pump rate so I'm starting from the same baseline every time. Also, I dose calc, alk, and mag. I chose to dose them only when my lights are not on, and when the pH is below 8.4. Also, to get best mixing, I chose not have any of them dose at the same time. My code is just like the code that Todd posted, but mine is as follows:
[calcium]
Fallback OFF
OSC 015:00/012:00/033:00 Then ON
If Time 15:00 to 23:00 Then OFF
If pH > 08.40 Then OFF
[magnesium]
Fallback OFF
OSC 030:00/000:30/029:30 Then ON
If Time 15:00 to 23:00 Then OFF
If pH > 08.40 Then OFF
[alkalinity]
Fallback OFF
OSC 045:00/006:00/009:00 Then ON
If Time 15:00 to 23:00 Then OFF
If pH > 08.40 Then OFF
Note that the values in the brackets are the outlet names and not part of the code. I think the only difference that mine illustrates is how to start them all at different times.
BTW, I also use the BRS dosing pumps and I've been very happy with them.
--AJ