A two-grid time-dependent formalism for the Maxwell equation