Computational methods for spectroscopic properties