spreadsheet calculations complete, though hacky