Have you had a look at API RP 520 to see what the Code actually says ?

There are endless 'Excel' type spreadsheet calcs out there, many have fatal errors. Be careful and ensure that any that you use are properly validated. Remember that you will end up in court, not the writer of that dodgy Excel or similar file.