I am currently working on a full multiplayer campaign. If you know how I am doing this, the answer is Excel sheets...lots of Excel sheets . I have just about all of it worked out (somethings like vices and virtues, king/heirs, etc I am just not including because it makes things too complicated). But there are a few things I need to know.

Does anyone know the algorithm to calculate how many florins you get for a trade route?

Does anyone know the algorithm to calculate the winner of a naval battle?