@ddaniels1 I think that's a good idea. A while ago I wrote a ratio calculator that uses a rearranged bolus wizard formula to predict an eventual BG result for each meal/correction, this then goes through an optimiser (which checks against actual BG levels) to deliver carb and sensitivity ratios. The measured finishing BG levels are corrected for time-after-meal using the integral of statistical distribution curve that fits a typical blood insulin concentration curve. The tool also has the option to suggest a basal offset (basal appears too high / low). The results are very sensible and when we've used them in our son's therapy we've got really good BG results following meals. I'm here as I'm now trying to write this as a Nightscout plug-in (report that makes reference to Care Portal). In conclusion, I would like to hear more about your ideas (fully understand what you envisage by RIA and possibly help write a calculation for EGR), and if anyone has a bit of time to help me get up to speed with Nightscout arcitecture I'd be very grateful!