I'm using org.joda.time.Period to calculate the frequency of an event happening. That frequency can be yearly, quarterly, monthly, weekly, daily, etc. I would like to know if there is a way to calculate how many times my period fits into a year. For example, for a monthly frequency (P1M), the value would be 12. For a weekly one (P1W), it would be 52. For a quarterly one (P3M), that value would be 4.
None of the methods from org.joda.time.Period seem to be useful for this case. Also, the answer needs to have an acceptable level of accuracy. For example, it would NOT be acceptable to turn the period into days and then calculate the yearly value by dividing 365 to the number of days.