Hi @JK29
As per your requirement, it looks like you will be needing more action and that would result in an increased cost to run more actions.
I would recommend calling the function app from logic app while you are working with advanced formatting and needs more compute fields in your logic app.