Each warship (DD, CA, BB) get to roll one dice. Subs, and Fighters on the CV get to roll 2 dice each.
Edit - CVs do not count as a warship for convoys
If the dice roll is 1-3 the warships hit the convoy otherwise (4-6) they missed.
Add the result from all the warships and that the total convoy value.
Now you need to compare that value to the IPCs that can be convoyed in that seazone.
Example #1:
Seazone 109. Has 6 ICPs from London and 2 ICPS from Scotland = 8 total ICPS that can be convoyed.
Germany has 2 subs in seazone 109 than can convoy. Since they are subs they each roll 2 dice.
Lets say they roll - 2, 4, 6, 3. Now add the numbers that are LESS than 4 which is 2 + 3 = 5. The convoy result would be 5
Example #2
Seazone 109.
Now the subs roll 3, 3, 3, 2. Since all the numbers are less than 4 we add them up 3+3+3+2 = 11. But since seazone 109 has only 8 ICPs available to convoy (6 ICPs from London and 2 ICPS from Scotland) the number convoyed is 8 rather than 11.