Calculate and print out the data required for the csv