Graphic caculation