Boundary conditions for time dependent problems with an artificial boundary