Calculation of fields using Google spreadsheet