Calculating the t statistic