No problem, and welcome to Google Apps Scripting. Some things you should know first. Google apps script is a series of libraries built on top of Javascript the programming language. So when googling around for certain concepts, try adding Javascript if Google Apps Script gives you no hits. The second, given that whenever a sheet is created it is created with 26 columns, and I doubt that any of the race information will start off with 26 columns you can append data to each
array that is created.
What does that actually mean? In the code below sheetData is a 2D array similar to a table or a spreadsheet. You are going to need to understand
javascript loops if you want to build scripts like this. If you add the formula you want to the top right , and add an extra "column" to all of the arrays below that array in the 2D array (you will get an error if you don't) it will add one formula where you desire. I edited the code on the sheet to include a loop that does so.