Redesigned calcTotalRecursive to resolve the amount of needed products correctly