# how to calculate the absorption spectrum for a given element?

I made a spectrometer that gives the absorption spectrum, by comparing the before and after readings.

There are lots of information on the emission spectrum of elements, but I need the absorption spectra of each element in the period table of elements.

There must be a formula that given amount of neutrons or electrons of an atom, it gives the absorption spectrum of that atom.