I have 2 grating and I want to stretch or compress the pulse; if I know the initial pulse duration of pulse how I can calculate the final duration of pulse after stretching or compressing?
You need to know more about your pulse (how it is chirped). Then, the compression or extension factor depends on the gratings pitch, incidence angles and distance between gratings.