Calculations of optical properties in strongly correlated materials