Measuring angle before cutting?
As pointed out in the comment, you can of course do it with a basic triangle calculator.

Do yourself a huge favor and buy a speed square. They are $10 and are useful for so many things beyond just marking an angle on a board.