calculating the area of ​​the triangle