A study of the apparatus function of a grid Fabry-Perot interferometer used as a F.I.R. spectrometer: Computing of the spectrum