Google sheet: Replace formula with java script

Job ID: 31147339

Budget: $30 – $250 USD

I have several Google sheet acting as database. I'm using formula in the sheets and now that the column reach around 50 thousand, it becomes heavy.
I need to replace those formula with JavaScript to make it lighter