That is a very good question; is there an analytical solution that takes in any given material's atomic and molecular structure and outputs how much light it would absorb.
AFAIK, such an equation does not and will not exist for some time. For instance, with radio waves longer wavelengths...