Yes, Panther is correct. An important additional note is that the attacking transports may not unload during non-combat. Anything that is on board stays on board and remains vulnerable to sinking.
TripleA has a calculator. Just start up a Local game with one of the two AA50 maps, then use the BattleCalculator. http://triplea.sourceforge.net/mywiki
I cant seem to be able to change the order of loss for the defender in a naval battle. Even tho the order says sink AC first, he keeps sinking Cruisers…