How do you calculate an exact p-value from the t-values?

I have a regression model that I've run in R.


m1 <- lm(y~x)

Which gives me a t-value of 3.301 on the slope

And I understand that I can get a critical value using the following

abs(qt(0.05/2, 10))

which gives 2.28 and indicates that I can reject the null.

But how do I recover the exact p-value of 0.008?