Fixing the Indexed-Repeat() Error Message - Calculation

Dear KoBoTeam, dear @Kal_Lam, I have gone through the forum posts and I am trying to find the right solution for the calculation error here

Basically, I would like to build the form in such a way that a customer can buy more than one accessories (a repeat group) and the price calculation will be automatic, depending on how many accessories are bought

I have been trying to fix the error by adding the indexed-repeat() function in the calculation field but it doesnt work out so far.

Appreciate for your further assistance here.

This post discussed previously should help you use the index-repeat in your xlsform: