Calculates the number of payments per year for a given payment frequency.
The payment frequency
Number of payments per year
Calculates the number of payments per year for a given payment frequency.