Numerical approaches to theory of spectroscopy in correlated materials