Here's one I did back in 97 rule days. If you're measuring a squaretop you'll need to consult a measurer on how they approach measuring them, because the base method only really works well for sails with a single continuous leech curve. As ever with excelspreadsheets no gurantees of accuracy...