I really feel sorry for the guy that writes EB's code...
Why? Its quite simple.
I must say that i like this idea. Now our historians myst say what they think about this.
Each port will get refound for only one fleet.

Hmm, this also brings up what may be a solution for the Militia upkeep problem. Would it possible to use an add_money script that would negate or reduce the upkeep of a militia unit when they have been in a city for one or two turns?
Nope it wont work for land units. We just cant get enough info.
On sea it simple.