There is no formula to work out I:C ratio, you find it by counting the amount of carbs you eat and titrating doses until the amount of insulin keeps your blood glucose in range for that amount of carbs at that time of the day.
After that you can calculate your ratio for that time of day.