Bolus Estimator v3.1

⚠️ Educational Use Only

This tool is a mathematical model designed for educational purposes. It demonstrates how insulin variables interact in theory.

It is not a medical device. The values generated are simulations and must not be used to determine actual insulin doses.

Bolus Estimator v3.1

Warsaw Method • Educational Model

Profile Variables

mg/dL
mmol/L
×
×
×
×

Meal & Biometrics

×
×
×
×
×
Simulation Only • Not Medical Advice
Component Units Logic Used
Meal Wave -- Net IOB Calculation
Warsaw Wave -- FPU Coverage
THEORETICAL REQ. -- Combined
🕒 Execution Strategy
Dual/Square Wave
Pre-Bolus: --

Logic Constraints Applied

  • IOB Factor: Active insulin reduces output.
  • Low Value Threshold: Logic blocks below 60.
  • Warsaw Method: < 1 FPU discarded.
Disclaimer: This is a mathematical model for educational purposes only. It is not a medical device. Always consult your doctor before changing insulin therapy. Data is stored locally on your device for convenience and is not transmitted.
Code generated by AI and verified by human review. Users should verify all math independently.

Educational Strategy Simulator: Visualizing the Warsaw Method

This simulation tool was designed as an educational exercise to illustrate the complex variables surrounding insulin modeling. Built as a collaborative programming project, it explores theoretical frameworks for conceptualizing how fat and protein might interact with standard carbohydrate baselines.

Instead of providing a static calculation, this tool helps you visualize hypothetical scenarios involving macronutrient digestion.

The Theoretical Framework

Most standard models only account for carbohydrates. This mathematical simulation visualizes a critical secondary layer of context:

The Warsaw Method (Fat & Protein Modeling): Carbohydrates are not the only macronutrients that impact blood glucose. This simulator evaluates your inputted Fat and Protein values and converts them into theoretical Fat-Protein Units (FPU). It then illustrates the hypothetical extra insulin those macros might require in a clinical setting, demonstrating how a dose might be extended over time (3 to 8 hours) to match the delayed digestion of fats and proteins.

How the Simulation Operates

  1. Input Custom Variables: Enter your theoretical variables, including your ICR (Insulin-to-Carb Ratio), alongside hypothetical Carbs, Fat, and Protein amounts. Note: If you are only modeling carbohydrates, leave the fat/protein fields blank.

  2. Run Simulation: The application will instantly generate a theoretical breakdown:

    • Immediate Base: The algorithmic baseline requirement for the inputted carbohydrates.

    • Extended Strategy: The theoretical extension (visualizing a dual or square wave approach) for the inputted fat and protein, along with the standard duration mapped to the Warsaw Method.

  3. Session Log: Add a label and hit "Save Strategy" to log your theoretical model in your local session history for easy review and comparison.

Under the Hood: The Algorithmic Logic

For those interested in the mathematical architecture of the model, here are the standard formulas utilized in the code's engine:

1. The Warsaw Method (Fat/Protein)

FPU Conversion:

$$\text{FPU} = \frac{(\text{Fat} \times 9 \text{ kcal}) + (\text{Protein} \times 4 \text{ kcal})}{100}$$

Theoretical FPU Baseline:

$$\text{Dose}_{\text{FPU}} = \frac{\text{FPU} \times 10}{\text{ICR}}$$

(Note: The algorithm assumes 1 FPU requires the same baseline as 10g of carbohydrates).

Simulation Duration:

  • $0.1–1.0$ FPUs: 3 Hours

  • $1.1–2.0$ FPUs: 4 Hours

  • $2.1–3.0$ FPUs: 5 Hours

  • $3.1+$ FPUs: 8 Hours

2. Standard Baseline

Immediate Base:

$$\text{Dose}_{\text{Carb}} = \frac{\text{Carbs}}{\text{ICR}}$$

⚠️ IMPORTANT LEGAL & MEDICAL DISCLAIMER ⚠️

This application is a mathematical simulation tool designed STRICTLY for educational, illustrative, and strategy planning purposes. It is NOT a clinical calculator, NOT a medical device, and MUST NOT be used to determine, alter, calculate, or administer medical treatments or insulin doses.

The outputs are purely theoretical. Always consult your endocrinologist or a qualified healthcare professional before making any changes to your diabetes management or insulin delivery strategies. By using this tool, you acknowledge that you are using it at your own risk.