square with int / thread Formul