How do angles in a quad add up to 540. when split into triangles

the angles in a quadrilateral add up to 360° , not 540°.