diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/Dialogs/NewInsulinDialog.java b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/Dialogs/NewInsulinDialog.java
index dcb457aa35..3c57346c39 100644
--- a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/Dialogs/NewInsulinDialog.java
+++ b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/Dialogs/NewInsulinDialog.java
@@ -249,14 +249,14 @@ public class NewInsulinDialog extends DialogFragment implements OnClickListener,
Profile currentProfile = MainApp.getConfigBuilder().getProfile();
if(currentProfile.equals(null))
return;
- if(currentProfile.getUnits().equals("mmol")) {
- tt = prefTT > 0 ? prefTT*18 : 80d;
+ if(currentProfile.getUnits().equals(Constants.MMOL)) {
+ tt = prefTT > 0 ? Profile.toMgdl(prefTT, Constants.MGDL) : 80d;
} else
tt = prefTT > 0 ? prefTT : 80d;
final double finalTT = tt;
if (startESMCheckbox.isChecked()) {
if(currentProfile.getUnits().equals("mmol")){
- confirmMessage += "
" + "TT: " + "" + tt/18 + "mmol for " + ((int) ttDuration) + " min ";
+ confirmMessage += "
" + "TT: " + "" + Profile.toMmol(tt, Constants.MMOL) + "mmol for " + ((int) ttDuration) + " min ";
} else
confirmMessage += "
" + "TT: " + "" + ((int) tt) + "mg/dl for " + ((int) ttDuration) + " min ";
}