The formula is baseheight.
This is because in a parallelogram (a slanted one), you can multiply baseheight 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