You can add a signature to a Microsoft Word document in several ways, depending on the computer you're using.
To add a formula in Google Sheets, click the cell where you want the answer, then choose one of the hundreds of functions.