You can make a line graph in Excel in a matter of seconds using data already entered into the spreadsheet.
To add a formula in Google Sheets, click the cell where you want the answer, then choose one of the hundreds of functions.