How Many Diagonals does a Octagon have?

An octagon has twenty diagonals. If you work it out it comes out to 40 but each diagonal is counted twice in the equation so you have to divide the answer by two.