__algorithmCaption__

__descriptionText__
Algorithm of Prandial Insulin Calculation

__dIOBcarb__ - __IOBcarbDef__
__dIOBcorr__ - __IOBcorrDef__
__dIOB__ = __dIOBcarb__ + __dIOBcorr__ - __IOBDef__
__dCU__ = __dCarbohydrates__/10
__dFPU__ = (__dProteins__ * 4.0 + __dFats__ * 9.0)/100
__dCU_perc__ = __dCU__/(__dCU__ + __dFPU__)

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

__inputCaption__

__dIOB__ = __IOB__
__dIOBcarb__ = __IOBcarb__
__dIOBcorr__ = __IOBcorr__
__dRatio__ = __ratio__
__dSensitivity__ = __sensitivity__
__dTarget__ = __glucoseTarget__
__dGlucose__ = __glucose__
__dCarbohydrates__ = __totalCarbs__
__dProteins__ = __totalProteins__
__dFats__ = __totalFats__
__dExerciseAdjustment__ = __exerciseAdjustment__
__dSicknessAdjustment__ = __sicknessAdjustment__
IRfactor = 10/__dRatio__ = __IRFactor__
NB/SB __dCorrection__ = __NB/SB_correction__
__dCU__ = __dCarbohydrates__/10 = __CU__ (0.5 round)
__dFPU__ = (__dProteins__*4 + __dFats__*9)/100 = __FPU__ (0.5 round)
__dCU_perc__ = __dCU__/(__dCU__ + __dFPU__) = __CU_perc__

__calculationCaption__

__CaseDescription__
 → NB = __NBFormula__
 → SB = __SBFormula__

__TDescription__ → Time = __TFormula__

correction =  __glucose__glucose - __glucoseTarget__target
__sensitivity__sensitivity



__CorrectionDetails__

__dNormalBolus__ = __NB__normal bolus __sign__ __correctionInsulin__correction__adjustmentDetails__ = __NBCorr__

__dSquareBolus__ = __SB__square bolus over __TFormula__

__dTotalBolus__ = __NBCorr__normal bolus + __SB__square bolus = __result__

__CarbCorrectionDetails__