The terms alternate in sign, which means that the error after a given number of terms is always less than (the absolute value of) the next term. So when you have done the integration, just take enough terms to ensure that the last one is less than 0.00005 in absolute value.