The test statistic is : $t=\frac{\bar{x}_1-\bar{x}_2}{s_p \sqrt{\frac{1}{n_1}+\frac{1}{n_2}}}$
The degrees of freedom are found using a complicated approximation formula. You won’t have to do that calculation "by hand", but is done by: $DF=\frac{(\frac{s_1^2}{n_1}+\frac{s_2^2}{n_2})^2}{\frac{1}{n_1-1} (\frac{s_1^2}{n_1})^2 + \frac{1}{n_2-1} (\frac{s_2^2}{n_2})^2}$