calculating variable created