The formula is base*height.
This is because in a parallelogram (a slanted one), you can multiply base*height and the triangle from the other side can be moved.
Which is why it's also the formula for rectangle and squares since they are also parallelograms