You don't say what type of recording you are going to use.
If you are using Calabrio/Cisco CR recording then it is a named agent and you need as many licenses as you have configured agents.
If you are using Media Sense you need as many licenses as the maximum number of agents that will be talking at any one time.
The wrap up time is not important as you could have a situation where all agents are on calls and none are in wrap up. It is not about average handle time but the maximum agents that could be on calls at any one time.
Neither Calabrio or Media Sense have a concept around ports, its only licenses and the maximum number of calls a server can record.
Graham