Cost calculation spreadsheet