{"version":3,"file":"Types_Utils.BejpGhQL.mjs","names":[],"sources":["https:/framerusercontent.com/modules/oCSW6IJse1ydETdZ9wkU/zVRSzzGc7qYzxepZiE6J/Types_Utils.js"],"sourcesContent":["// ----------------------------------- //\n// UTILS\n// ----------------------------------- //\nexport const calculateReturnPercentage=({investmentStrategy,currentTimeframeValue})=>{// Calculate compound return by multiplying (1 + monthly_return/100)\nconst compoundReturn=investmentStrategy.data.slice(0,currentTimeframeValue).reduce((acc,curr)=>acc*(1+curr.returnPercentage/100),1);// Convert to percentage: (final_value - 1) * 100\nconst returnPercentage=(compoundReturn-1)*100;// Round to 2 decimal places\nreturn Math.round(returnPercentage*100)/100;};export const calculateResult=({currentInvestmentValue,returnPercentage})=>{return currentInvestmentValue*(returnPercentage+100)/100;};\nexport const __FramerMetadata__ = {\"exports\":{\"SliderType\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Store\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"calculateResult\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"calculateReturnPercentage\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"InvestmentStrategy\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TextAlign\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FontProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"InvestmentStrategyType\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Types_Utils.map"],"mappings":"sEAGa,GAA2B,CAAC,qBAAmB,2BAAyB,CAErF,IAAM,GADe,EAAmB,KAAK,MAAM,EAAE,EAAsB,CAAC,QAAQ,EAAI,IAAO,GAAK,EAAE,EAAK,iBAAiB,KAAK,EAAE,CAC5F,GAAG,IAC1C,OAAO,KAAK,MAAM,EAAiB,IAAI,CAAC,KAAmB,GAAiB,CAAC,yBAAuB,sBAA4B,GAAwB,EAAiB,KAAK"}