Logbook‎ > ‎

Using the Calculator


Figure 1 - Calculator (hidden food screen)
The calculator in Diabetes:M is used to calculate the amount of insulin needed by the body for certain amount and type of food. For the calculator to work precisely you must configure the application in the right way (insulin sensitivity, carbohydrates ratio, active insulin duration). Otherwise the calculator may not work good and may lead to bad insulin doses calculations. Use it only after consultation with your doctor about the configurations and calculator's features.

Accessing the calculator
You can access the calculator from the main screen's menu. It can be also accessed from the Logbook, in the top menu bar.

Calculator features (Figure 1)
  1. Shows currently active insulin in your body according to your settings and last log entries
  2. Calculated bolus you need to inject for the selected foods
  3. Extended bolus injections calculated according your settings and entered data in the extended bolus section. If you eat foods with more fats for example, the body needs more insulin in time to take care of the carbohydrates. Fats are reducing insulin's action and this can be fixed with small injections in a few hours, which this feature calculates. (See "Using the calculator" below for more information)
  4. Add reminders for extended bolus injections
  5. Clear all fields
  6. Show/hide food section
  7. View all selected foods in the current form
  8. Your current glucose and the calculated carbohydrates from the selected foods
  9. Check if you want to use extended bolus feature. It's used to calculate more precisely the needed insulin in the next few hours if your food has a lot of fats and needs such action. (See "Using the calculator" below for more information)
  10. Configure how to split your extended bolus injections or let the app split it for you.
  11. Add exercise or sickness adjustments to the calculations (sickness is in the bottom of the screen, not seen in the screenshot, see "Using the calculator" below for more information)
*The calculator can be split in two sections to show food section in the second part of the screen or view it in full screen mode as shown on the screenshot.

Figure 2 - Food list
Managing food (Figure 2)
  1. Enter search term
  2. Search in FatSecret database
  3. Scan barcode of a food. If it doesn't exist in the database you can enter the product's data and save it.
  4. Show your saved meals from FatSecret profile (FatSecret profile needed)
  5. Show your favorite foods from FatSecret (FatSecret profile needed)
  6. Clear the search
  7. Search by voice
  8. Search in additional databases. Available options:
    • USDA - United States Department of Agriculture
    • BEDCA - Spanish Food Composition Database
  9. Add food to your database
  10. Click on a food to add it to the calculator and use it for calculations.
    • Click and hold on a food to edit it's data or add it to favorites
  11. Favorite foods are marked with a star
  12. Show favorite food only
  13. Show user added food only
*Important note: Diabetes:M gathers food information from it's own database, from FatSecret database and from the two additional databases (USDA, BEDCA). 

When you add favorite food:
  • If it's from FatSecret it will be shown only from FatSecret's favorites (Figure 2, № 5).
  • If it's from the local database it will be shown only from your favorites filter (Figure 2, № 12)
  • If it's from USDA, BEDCA, the food is imported into the local database and marked favorite there. It can now be found from the local database.
Search:
  • The default auto suggest feature searches only in the local database. 
  • To search in FatSecret use the magnifier icon (Figure 2, № 2)
  • To search in USDA, BEDCA use the planet icon (Figure 2, № 8)

Figure 3 - Calculator with food screen
Using the calculator (Figure 3, 4, 5)
  1. Go to the calculator using the main menu or the top menu from the Logbook screen
  2. Enter your current glucose level
  3. Enter food information 
    • Enter manually carbohydrates, proteins, fats, calories
    • Click on a food and enter amount in oz, grams, portions
  4. *Enter sickness or exercise corrections if you need to
  5. **Enter extended bolus information if you need to
  6. ***The calculator will calculate the needed bolus according to all entered data including the active insulin in your body. 
    • If you've chosen extended bolus the app will calculate when to inject additional insulin and how much to use. You can also add reminders for those additional injections.
    • You can split the extended bolus in a few doses or let the app split it for you.
  7. After the calculations hit "Save" in the top menu and the app will return you to the new entry screen with all the data entered in the correct fields
*When you're sick your body may need more insulin or medications to handle the carbohydrates. With every person this amount is different, so you should measure your glucose levels more when you're sick in order to set your sickness correction properly.
*When you're exercising your body may need lesser insulin or medications to handle the carbohydrates intake. It's different for every person so you should measure your glucose levels when you're exercising in order to know how different exercises affect your glucose. You may even need to take some carbohydrates in order to stay in the prefered glucose target levels when you're doing exercises and afterwards.

**Extended bolus is used when you take foods with more fats. Your body may need more insulin in the next few hours to handle those foods, because the carbohydrates are handled more difficult and slower than normal in this case. The extended bolus feature will calculate how much more insulin you will need to handle this situation. You can set the time periods for the additional insulin, the % correction and the splits on which you want to take it. The correction % here is different for every person and you may want to experiment with fat foods and more glucose measurement to get this percent right.

***The calculations done are using formulas which include your settings for insulin sensitivity and carbohydrates ratio, they also take in mind the currently active insulin that you have in your body, so the active insulin duration is also important setting. You have to weight your food and know it's nutrition facts and also measure your glucose levels in order to configure those settings and make the calculator work for your situation right.
Figure 4 - Add/edit food screen
Figure 5 - Selecting food quantity
Continue to the next part of the guide: Statistics