Hi @raff_rizzetti
I think this is a bit too complex for the purposes of this free support forum.
Due to time restraints, I am unavailable for this kind of custom code help.
I wish you good luck and please do read over the documentation for the repeater field to see how the data is saved!
Thanks
E