__algorithmCaption__

__dIOBcarb__ - __IOBcarbDef__
__dIOBcorr__ - __IOBcorrDef__
__dIOB__ = __dIOBcarb__ + __dIOBcorr__ - __IOBDef__
correction =  glucose - target
sensitivity



IF glucose > target AND correctionIOBcarb THEN
   →correction = -IOBcorr

IF glucose > target AND correction > IOBcarb THEN
   →correction = correction - IOB

IF glucosetarget THEN
   →correction = correction - IOBcorr

bolus =  carbs  + correction
ratio




__inputCaption__

__dIOB__ = __IOB__
__dIOBcarb__ = __IOBcarb__
__dIOBcorr__ = __IOBcorr__
__dRatio__ = __ratio__
__dSensitivity__ = __sensitivity__
__dTarget__ = __glucoseTarget__
__dGlucose__ = __glucose__
__dCarbohydrates__ = __totalCarbs__
__dExerciseAdjustment__ = __exerciseAdjustment__%
__dSicknessAdjustment__ = __sicknessAdjustment__%

__calculationCaption__
correction =  __glucose__ - __glucoseTarget__
__sensitivity__



__CorrectionDetails__

bolus =  __totalCarbs__carbs  __sign__ __correctionInsulin__correction
__ratio__ratio



bolus = __totalInsulin__carbs bolus __sign__ __correctionInsulin__correction __adjustmentDetails__= __result__


__CarbCorrectionDetails__