Dynamics of charged particle in a box uder influence of changing electric field