Also when figuring out how much insulin is needed for a given amount of carbs you need to factor in the type of carbs, your individual response to that type of carbs, what fats/protein/fiber you eat with it (fats and fiber tend to slow down the BG rise from carbs, protein can cause a rise when eaten on its own but can also slow down the rise from carbs), what time of day it is (I need around double the amount of insulin for the same food first thing in the morning vs in the afternoon), your mood, what else is in your stomach already, the weather (hot weather can greatly increase insulin sensitivity), your current fitness level, what physical activity you have done over the last day or 2 and what you will do over the coming hours, where on your body you inject, if you are fighting any illness…
For my wife (type 1 diabetic), physical activity is the big one that throws off her calculations as a walk in a hilly area makes her blood sugar drop like a rock. Of course she always has something with sugar with her but then she has to figure out how much to consume.