Calculations of Nonlinear Optical Properties for the Solid State