Convert benefitFrequencyLoading and premiumFrequencyLoading from a list into a proper function that also works for values other than 1/2/4/12
Current code: benefitFrequencyLoading = list("1" = 0.0, "2" = 0.0, "4" = 0.0, "12" = 0.0)
Should be converted into a function.