Adapted calculatePremium