Calculation of necessary arguments for the test